Accessing .net objects from MS Access 2013

Using Visual Basic for Applications 2013 in the Office 365 environment, can I access .net objects such as pdfsharp?  I currently have an Access Application that uses Adobe Acrobat 9 Pro to create and combine PDFs.   My company wants to avoid purchasing another Adobe Acrobat 9 license.
LVL 1
sjlevine34Asked:
Who is Participating?
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
The only way you could do that would be to create a .NET utility/dll that is compatible with Access, and expose the members of the PDFSharp utility in that utility/dll. This article shows how to do something similar:

https://richnewman.wordpress.com/2007/08/25/a-beginner%E2%80%99s-guide-to-calling-a-net-library-from-access/

In that article, the author is creating a very simple DLL, and making it "com-visible". From there, you include it in your Access project via the References dialog, and then you can begin using it. If you're going to deploy this to others, be sure to include the PDFSharp objects, as well as your .com object, and register them correctly on the system.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.