SammB
November 1st, 2007, 02:45 PM
I am trying to print existing PDF files using VB. I put an instance of the OCX on a seperate form with no other controls. I OpenFile() and the image appears. If I PrintFile (with dialog), it prints fine. If I PrintSilent or PrintSilentByName, a document gets spooled to the printer with either 460 or 852 bytes (not big enough!) and I get a blank page.
Can someone tell me the easiest way to just print a PDF file to a specific printer with no dialog? Does the OCX control need to be visible? Does the form it is on need to be visible?
I was using the Adobe SDK, but it was so slow and a memory hog. I use FoxitReader and would like to use its rendering engine in my program.
Thanks.
Can someone tell me the easiest way to just print a PDF file to a specific printer with no dialog? Does the OCX control need to be visible? Does the form it is on need to be visible?
I was using the Adobe SDK, but it was so slow and a memory hog. I use FoxitReader and would like to use its rendering engine in my program.
Thanks.