返回顶部

收藏

C# 导出水晶报表到PDF文件

更多
try
{
    ExportOptions CrExportOptions ;
    DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
    PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();
    CrDiskFileDestinationOptions.DiskFileName = "c:\\csharp.net-informations.pdf";
    CrExportOptions = cryRpt.ExportOptions;
    {
        CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
        CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
        CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
        CrExportOptions.FormatOptions = CrFormatTypeOptions;
    }
    cryRpt.Export();
}
catch (Exception ex)
{
    MessageBox.Show(ex.ToString());
}

标签:C#,导出水晶报表,PDF

收藏

0人收藏

支持

0

反对

0

发表评论