Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

CrystalReports : Export to PDF or DOC

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


Comments

  • lelulelu Posts: 8Member
    : 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 Posts: 8Member
    : : 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 Posts: 34Member
    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 uaePosts: 1Member
                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.