Click here to Skip to main content
15,662,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have created Crystal report and export to PDF using this coding
Rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, FileNameVar)

Its working fine.My issue is the Crystal report page size is Letter and Orientation is Landscape
When i export to PDF that Orientation is changed to portrait.
Due to this Whole format is changed , how to solve this?


1 solution

check the Printing Preferences in Printers and Faxes (Control Panel). set the same report page size if it is different.

Try this it may help you.

Pal raj.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900