提供匯出至 PDF、RTF 或 Word 時的擷取和設定選項屬性。
如需這個類型的成員清單,請參閱 PdfRtfWordFormatOptions 成員。
System.Object
CrystalDecisions.Shared.ExportFormatOptions
PdfRtfWordFormatOptions
[Visual Basic]
Public Class PdfRtfWordFormatOptions
Implements ICloneable
[C#]
public class PdfRtfWordFormatOptions : ICloneable
範例
這個範例說明如何在匯出成為 Rich Text 格式時設定 PdfRtfWordFormatOptions 類別。
[Visual Basic]
Private Sub ExportWithFormatOptions(ByVal fileName As String, ByVal firstPage As Integer, ByVal lastPage As Integer, ByVal useRange As Boolean)
Dim exportOpts As ExportOptions = New ExportOptions()
Dim pdfRtfWordOpts As PdfRtfWordFormatOptions = ExportOptions.CreatePdfRtfWordFormatOptions()
Dim destinationOpts As DiskFileDestinationOptions = ExportOptions.CreateDiskFileDestinationOptions()
pdfRtfWordOpts.FirstPageNumber = firstPage
pdfRtfWordOpts.LastPageNumber = lastPage
pdfRtfWordOpts.UsePageRange = useRange
exportOpts.ExportFormatOptions = pdfRtfWordOpts
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
destinationOpts.DiskFileName = fileName
exportOpts.ExportDestinationOptions = destinationOpts
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile
Report.Export(exportOpts)
End Sub
[C++]
static void ExportWithFormatOptions (String* fileName, int firstPage, int lastPage, bool useRange)
{
ExportOptions* exportOpts = new ExportOptions();
PdfRtfWordFormatOptions* pdfRtfWordOpts = ExportOptions::CreatePdfRtfWordFormatOptions();
DiskFileDestinationOptions* destinationOpts = ExportOptions::CreateDiskFileDestinationOptions();
pdfRtfWordOpts->FirstPageNumber = firstPage;
pdfRtfWordOpts->LastPageNumber = lastPage;
pdfRtfWordOpts->UsePageRange = useRange;
exportOpts->ExportFormatOptions = pdfRtfWordOpts;
exportOpts->ExportFormatType = ExportFormatType::PortableDocFormat;
destinationOpts->DiskFileName = fileName;
exportOpts->ExportDestinationOptions = destinationOpts;
exportOpts->ExportDestinationType = ExportDestinationType::DiskFile;
Report->Export (exportOpts);
};
[C#]
private static void ExportWithFormatOptions (string fileName, int firstPage, int lastPage, bool useRange)
{
ExportOptions exportOpts = new ExportOptions();
PdfRtfWordFormatOptions pdfRtfWordOpts = ExportOptions.CreatePdfRtfWordFormatOptions();
DiskFileDestinationOptions destinationOpts = ExportOptions.CreateDiskFileDestinationOptions();
pdfRtfWordOpts.FirstPageNumber = firstPage;
pdfRtfWordOpts.LastPageNumber = lastPage;
pdfRtfWordOpts.UsePageRange = useRange;
exportOpts.ExportFormatOptions = pdfRtfWordOpts;
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
destinationOpts.DiskFileName = fileName;
exportOpts.ExportDestinationOptions = destinationOpts;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
Report.Export (exportOpts);
}
需求
組件 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
請參閱
PdfRtfWordFormatOptions 成員 | CrystalDecisions.Shared 命名空間
©2005 Business Objects SA All rights reserved
| Business Objects SA http://www.china.businessobjects.com/ 支援的服務 http://www.china.businessobjects.com/BOindex/support/ |