62,047
社区成员
发帖
与我相关
我的任务
分享
public bool ExportToPDF(string ReportFile, object ReportDataSource, string PDFFileName)
{
try
{
ReportDoc.Load(ReportFile);
ReportDoc.SetDataSource(ReportDataSource);
FileOPS.DiskFileName = PDFFileName;
ExOPS = ReportDoc.ExportOptions;
ExOPS.ExportDestinationOptions = FileOPS;
ExOPS.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;
ExOPS.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
ReportDoc.Export();
return true;
}
catch
{
return false;
}
}
ExportToPDF(
Server.MapPath("../CheckReport/Turbine/GuanBanReport.rpt"),
ds.Tables["CITP_TURBINEGUANBAN"],
"C://inetpub//wwwroot//file//GuanBanReport.pdf"
);
http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.htmlPdfDocument.MergeFiles(file1,file2,file3)
????????? SharpZipLib
PdfDocument.MergeFiles(file1,file2,file3)
http://www.e-iceblue.com/Introduce/pdf-for-net-introduce.htmlSharpZipLib