将报表以指定格式导出到文件中。
[Visual Basic]
Public Overrideable Sub ExportToDisk( _ ByVal formatType As CrystalDecisions.Shared.ExportFormatType, _ ByVal fileName As String _ )
[C#]
public virtual void ExportToDisk(
CrystalDecisions.Shared.ExportFormatType formatType,
string fileName
);
参数
- formatType
用来导出报表的格式类型。 - fileName
用来导出报表的文件名。
示例
下面的示例将报表作为 RTF 文档导出到磁盘。
[VJ#]
Report.ExportToDisk(ExportFormatType.RichText, "report.rtf");
[Visual Basic]
Report.ExportToDisk(ExportFormatType.RichText, "report.rtf")
[C++]
Report->ExportToDisk(ExportFormatType::RichText, "report.rtf");
[C#]
Report.ExportToDisk(ExportFormatType.RichText, "report.rtf");
要求
命名空间 CrystalDecisions.CrystalReports.Engine
程序集 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
请参见
ReportDocument 类 | ReportDocument 成员 | CrystalDecisions.CrystalReports.Engine 命名空间
©2005 Business Objects SA 保留所有权利。
| Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |