PdfRtfWordFormatOptions Clase
Proporciona propiedades de recuperación y configuración de opciones al exportar a PDF, RTF o Word.
Para obtener una lista de todos los miembros de este tipo, vea Miembros de PdfRtfWordFormatOptions.
System.Object
CrystalDecisions.Shared.ExportFormatOptions
PdfRtfWordFormatOptions
[Visual Basic]
Public Class PdfRtfWordFormatOptions
Implements ICloneable
[C#]
public class PdfRtfWordFormatOptions : ICloneable
Ejemplo
Este ejemplo muestra el procedimiento para establecer la clase PdfRtfWordFormatOptions al exportar a texto enriquecido.
[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);
}
Requisitos
Espacio de nombres CrystalDecisions.Shared
Ensamblado CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Vea también
PdfRtfWordFormatOptions Miembros | CrystalDecisions.Shared Espacio de nombres
©2005 Business Objects SA Reservados todos los derechos.
Business Objects SA http://www.spain.businessobjects.com/ Servicios de soporte http://www.spain.businessobjects.com/Servicios/soporte.htm |