Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to close pdf from vb

Status
Not open for further replies.

ndp

Programmer
Mar 3, 2003
121
US
Hi,
I have created an application which creates pdf for the crystal reports. I am using vb 6. The application creates several pdfs from different reports and different parameters. It works fine. But, my problem is while running the application, all pdfs get opened one by one and doesn't get closed.
Can anybody suggest a way to close the pdf before proceeding to create another one?

This is the last part of the code...
crpReport.SelectPrinter "winspool", "Acrobat PDFWriter", "LPT1"
crpReport.PageSetup.PaperSize = crPaperLetter
crpReport.PageSetup.PaperOrientation = iOrin
crpReport.PrintOut False, 1

Thanks very much,
ndp
 
Have a look at the Zeon DocuCom PDF Driver
You can control all the PDF settings at run-time including specifying the filename and setting ViewPDF to false so they aren't opened at all. Run-time settings are specified in ini files. My printer management library, PDXPro, provides an ActiveX wrapper for the DocuCom driver, exposing around 150 PDF settings as read/write properties.
Paul Bent
Northwind IT Systems
 
Thanks Paul,

It was good hint. I changed the settings of pdf and it works fine!

Thanks again
ndp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top