Search code examples
c#asp.netcrystal-reportsexport-to-pdf

Crystal Report - Exporting to PDF in both Landscape & Portrait


I've a crystal report which is having two pages; one in Portrait and the second one is in Landscape format. In report it looks fine but when I exporting it to a PDF, both pages got exported in Portrait format loosing some of the data. Can anyone solve my problem? Many thanks in advance.


Solution

  • There is no need to do any single line of code follow this simple step step:

    1. Create first crystal report in Portrait format and this is default format of report.
    2. Create a second crystal report in landscape. To do this you should right on the second crystal report Design->page set-up->orientation->choose landscape
    3. Create a third crystal report that is final report in that add in detail section first and second report as a sub report. Just right click insert->sub report
    4. In the final report just right click on section export on detail section of second report select section expert->paging->landscape your job is done.
    5. Then export that final report to PDF in your code.