用PdfRtfWordFormatOptions:
private void SetFormatOptions (int firstPage, int lastPage, bool useRange)
{
// Declare variables and get the export options.
ExportOptions exportOpts = new ExportOptions();
PdfRtfWordFormatOptions pdfRtfWordOpts = new
PdfRtfWordFormatOptions (); // Set the export format.
pdfRtfWordOpts.FirstPageNumber = firstPage;
pdfRtfWordOpts.LastPageNumber = lastPage;
pdfRtfWordOpts.UsePageRange = useRange;
Report.ExportOptions.FormatOptions = pdfRtfWordOpts;
Report.ExportOptions.ExportFormatType =
ExportFormatType.RichText;
}
private void SetFormatOptions (int firstPage, int lastPage, bool useRange)
{
// Declare variables and get the export options.
ExportOptions exportOpts = new ExportOptions();
PdfRtfWordFormatOptions pdfRtfWordOpts = new
PdfRtfWordFormatOptions (); // Set the export format.
pdfRtfWordOpts.FirstPageNumber = firstPage;
pdfRtfWordOpts.LastPageNumber = lastPage;
pdfRtfWordOpts.UsePageRange = useRange;
Report.ExportOptions.FormatOptions = pdfRtfWordOpts;
Report.ExportOptions.ExportFormatType =
ExportFormatType.RichText;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货