I know this has been asked before, but all the answers seem to give the same response, which is not working for me. I am working in VS2008 VB.net. I have a report that is populated with data within the VB code, then exports the report to a pdf file.
I have tried:
dim rpt as CrystalDecisions.CrystalReports.Engine.ReportDocument
rpt.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true
rpt.PrintOptions.PaperSize = 9 (integer value for A4)
My current default printer has A4 as its paper size.
The report was created when the default printer has a paper size of Letter.
The code above has no effect on the output file. I see in the properties of the PDF file that the document properties show the report page size as Letter.
Is there any way to change this programatically? Is there a document or report setting that I can use to set the paper size?