Invalid use of New keyword

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
bsspgh
Posts: 5
Joined: Tue Nov 25 2003

Invalid use of New keyword

Post by bsspgh »

I keep getting an error when I try to run or compile the code. I declared the dll in a module and here is the code I am using on the form. Any help would be appreciated.


Public pdfprinter As CDIntfEx.CDIntfEx

Private Sub Form_Load()
Dim pdfprinter As New CDIntfEx.CDIntfEx

Thanks
bsspgh
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

As I can see in your below code you are using the ActiveX interface of CDIntfEx, so there is no need to declare the dll in a module. You need however to add a Reference to 'CDintf210.dll' in your project. (You can find CDIntf210.dll in the System directory or your PC.

Hope this helps.
Post Reply