Touch the future...

How to generate PDF version of Crystal Reports programmatically?

上一篇 / 下一篇  2008-01-12 09:27:51 / 个人分类:Crystal Reports

ReportDocument O_Report=new ReportDocument();
ExportOptions exportOpts =newExportOptions();
PdfRtfWordFormatOptions pdfFormatOpts =newPdfRtfWordFormatOptions ();
DiskFileDestinationOptions diskOpts =newDiskFileDestinationOptions();

exportOpts = O_Report.ExportOptions;//Set the PDF format options.exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.FormatOptions = pdfFormatOpts;//Set the disk file options and export.exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
diskOpts.DiskFileName ="C://Trial.pdf";//This is the path where the file will be savedexportOpts.DestinationOptions = diskOpts;

O_Report.Export ();

TAG: pdf crystal reports

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-07-25  
  12345
6789101112
13141516171819
20212223242526
2728293031  

数据统计

  • 访问量: 568
  • 日志数: 24
  • 文件数: 1
  • 书签数: 18
  • 建立时间: 2008-01-08
  • 更新时间: 2008-06-18

RSS订阅

Open Toolbar