![]() ![]() This.Application = this.GetHostItem(typeof(.Application), "Application") this.Application = this.GetHostItem(typeof(.Application), "Application") ![]() Note that this step changes a file that is auto-generated: the file is not normally re-generated, but can be if I corrupt the project (the point being that my manual changes will be lost if the file is re-generated): This makes it easier to open the file – here I can change the declaration and initialization of the Application field from M.O.I.Word.Application to M.O.I.Access.Application. In Solution Explorer, I can select the project and click the "show all files" button. It also pulls in, which duplicates the Office.dll already referenced by default - so I'll delete one of these two duplicates. Then, I'll add a reference to the Microsoft Access Object Library, on the COM tab (this also pulls in references to ADODB and DAO). To start building an Access add-in, I could create a Word (or InfoPath, PowerPoint, Project or Visio) add-in (Excel or Outlook would also work, but they have additional redundant host-specific code). I haven't tried it, don't know if it works, but it sounds promising. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |