Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

CrystalReports : Export to PDF or DOC

jintojinto Member Posts: 8
Friends,
cud u tell me how to export a CryRepo page either as a PDF or DOC....
thanks in advance..
Jinto


Comments

  • lelulelu Member Posts: 8
    : Friends,
    : cud u tell me how to export a CryRepo page either as a PDF or DOC....
    : thanks in advance..
    : Jinto
    :
    :
    :
    This code does the actual creation of a PDF file
    //'Set the exporting information
    ExportOptions crExportOptions = crReportDocument.ExportOptions;
    crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
    //The path/location where the exported file will be saved
    string exportFilePath = PDFDirectory + PDFFileName;
    //'Set the options for saving the exported file to disk
    DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
    crDiskFileDestinationOptions.DiskFileName = exportFilePath;
    crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
    crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;

    //Export the report
    crReportDocument.Export();



  • jintojinto Member Posts: 8
    : : Friends,
    : : cud u tell me how to export a CryRepo page either as a PDF or DOC....
    : : thanks in advance..
    : : Jinto
    : :
    : :
    : :
    : This code does the actual creation of a PDF file
    : //'Set the exporting information
    : ExportOptions crExportOptions = crReportDocument.ExportOptions;
    : crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
    : //The path/location where the exported file will be saved
    : string exportFilePath = PDFDirectory + PDFFileName;
    : //'Set the options for saving the exported file to disk
    : DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
    : crDiskFileDestinationOptions.DiskFileName = exportFilePath;
    : crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
    : crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
    :
    : //Export the report
    : crReportDocument.Export();
    :
    :
    :
    :



    Thanks.....
  • arronleearronlee Member Posts: 43
    Nice sharing.
    Many thanks for that.
    But I wonder whether the free tools online have as many professional fuctions as the paid ones.
    I used to convert PDF files with another [link=http://www.yiigo.com/net-document-image-plugin/pdf-plugin/]PDF converter SDK whose processing way is simple and fast[/link].
    But I will try your guys' sharing later and find more.
    Thx again.

    Best regards,
    Arron

  • robertgalprobertgalp uaeMember Posts: 1
                CrExportOptions = cryRpt.ExportOptions;
                {
                    CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                    CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
                    CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
                    CrExportOptions.FormatOptions = CrFormatTypeOptions;
                }
                cryRpt.Export();
    

    Source:Crystal Reports to PDF

    robert

Sign In or Register to comment.