I'm looking for VB6 sample code - just some basic stuff to get me going.
Right now, I have a simple app where I print to the vb Printer object, and render some pictures directly to the DC of the printer.
Once I initialize the Amyuni printer, can I then start using the Printer object, i.e.
Printer.Print "hello"
Printer.PageSize= 5
etc?
When do I use the Amyuni specific properties/methods vs the Printer object properties/methods?
Thanks.
Newbie - sample code?
Hello,
Please feel free to downlaod our Access Technical Note from: http://www.amyuni.com/en/support/technotes.html
The code is in VBA, you can easily 'translate' it to VB.
You can use the Printer object if you set it to the PDF Printer othewise you can use CDIntf to set the properties of the PDF Printer. For more information about CDintf please check the developers' manual "Common Driver Interface 250.pdf" that you got with the evaluation version.
Hope this helps.
Please feel free to downlaod our Access Technical Note from: http://www.amyuni.com/en/support/technotes.html
The code is in VBA, you can easily 'translate' it to VB.
You can use the Printer object if you set it to the PDF Printer othewise you can use CDIntf to set the properties of the PDF Printer. For more information about CDintf please check the developers' manual "Common Driver Interface 250.pdf" that you got with the evaluation version.
Hope this helps.
a little example for ya:
This way, you will set the PDF cenverter as the default printer before print your document. When you call the DriverEnd method, the original default printer will be restored.
Maybe help.
Bye
Code: Select all
'Initialize the PDF printer
Dim pdfprinter As New CDIntf.CDIntf
pdfprinter.DriverInit("PDF Compatible Printer Driver")
'you can try pdfprinter.DriverInit("Amyuni PDF Converter")
'Configures printer
pdfprinter.DefaultFileName = "c:\test.pdf"
pdfprinter.FileNameOptions = 1 + 2
pdfprinter.SetDefaultConfig
pdfprinter.SetDefaultPrinter
'Prints the document, doesn't matter how
Call PrintMyDocument
'Restore default configuration
pdfprinter.DefaultFileName = ""
pdfprinter.FileNameOptions = 0
pdfprinter.SetDefaultConfig
'Finish the job
pdfprinter.DriverEnd
Maybe help.
Bye