Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Changing paper size at runtime

$
0
0

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.load ('myfile.rpt")

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?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>