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.
Public Class Form1
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim cdiSetting As New AxCDIntfEx.AxCDIntfEx
cdiSetting.DriverInit("theprinter")
' code continues...
End Sub
End Class
*****************************
Code was provided to me (can't contact the author). The DriverInit throws an InvalidActiveXStateException error. It used to work (guess in .Net 2003).
Thanks for the reply. The printer&driver was corrrecly installed. But I rewrite the code from zero and now is working (dont ask me why). Bad idea to use a code made for another programmer, worst if is in VS2003....