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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting Page size option for PDF

Status
Not open for further replies.

teachmecr

Programmer
Oct 1, 2006
72
US
Hi,
im using the following code in VB to export my reports from a crystal viewer to PDF. I was just wondering how can i add options for setting the printer to legal size paper. So when the user opens the pdfs and they click on print it automatically prints it to legal size. My reports are already set to legal size but thats when i print them from the viewer or crystal itself. The PDfs arent coming out on legal size. thanks

Me.crxreport.ExportOptions.FormatType = crEFTPortableDocFormat
'Defines report's destination type
Me.crxreport.ExportOptions.DestinationType = crEDTDiskFile
'Defines report's file name
Me.crxreport.ExportOptions.DiskFileName = "mypath".pdf"
Me.crxreport.Export False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top