ReportDocument.Export 방법
ExportOptions 개체에 지정한 형식 및 대상 위치로 보고서를 내보냅니다.
[Visual Basic]
Public Overrideable Sub Export( _
ByVal options As CrystalDecisions.Shared.ExportOptions _
)
[C#]
public virtual void Export(
CrystalDecisions.Shared.ExportOptions options
);
매개 변수
- options
보고서를 내보낼 형식 및 대상입니다.
예제
다음 예제는 보고서를 RTF 문서로 디스크에 내보냅니다.
[VJ#]
private void exportToDisk(String fileName)
{
ExportOptions exportOpts = new ExportOptions();
DiskFileDestinationOptions diskOpts =
ExportOptions.CreateDiskFileDestinationOptions();
exportOpts.set_ExportFormatType(ExportFormatType.RichText);
exportOpts.set_ExportDestinationType(ExportDestinationType.DiskFile);
diskOpts.set_DiskFileName(fileName);
exportOpts.set_ExportDestinationOptions(diskOpts);
Report.Export(exportOpts);
}
[Visual Basic]
Private Sub ExportToDisk(ByVal fileName As String)
Dim exportOpts As New ExportOptions()
Dim diskOpts As DiskFileDestinationOptions
diskOpts = ExportOptions.CreateDiskFileDestinationOptions()
exportOpts.ExportFormatType = _
ExportFormatType.RichText
exportOpts.ExportDestinationType = _
ExportDestinationType.DiskFile
diskOpts.DiskFileName = fileName
exportOpts.ExportDestinationOptions = diskOpts
Report.Export(exportOpts)
End Sub
[C++]
void ExportToDisk(String* fileName)
{
ExportOptions* exportOpts =
new ExportOptions();
DiskFileDestinationOptions* diskOpts =
ExportOptions.CreateDiskFileDestinationOptions();
exportOpts->ExportFormatType = ExportFormatType::RichText;
exportOpts->ExportDestinationType =
ExportDestinationType::DiskFile;
diskOpts->DiskFileName = fileName;
exportOpts->ExportDestinationOptions = diskOpts;
Report->Export(exportOpts);
};
[C#]
private void ExportToDisk (string fileName)
{
ExportOptions exportOpts = new ExportOptions();
DiskFileDestinationOptions diskOpts =
ExportOptions.CreateDiskFileDestinationOptions();
exportOpts.ExportFormatType = ExportFormatType.RichText;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;
diskOpts.DiskFileName = fileName;
exportOpts.ExportDestinationOptions = diskOpts;
Report.Export(exportOpts);
}
요구 사항
네임스페이스 CrystalDecisions.CrystalReports.Engine
어셈블리 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
참고 항목
ReportDocument 클래스 | ReportDocument 멤버 | CrystalDecisions.CrystalReports.Engine 네임스페이스
©2005 Business Objects SA All rights reserved.
Business Objects SA http://www.businessobjects.com/ 지원 서비스 http://korea.businessobjects.com/services/ |