Exports the document to a disk file.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
Parameters
- fileName
- Type: System..::..String
The output file name. The file extension determines the export format.
Examples
The following code uses the Export(String) method to export the document with using PdfExporter:
Copy CodeVisual Basic
' Export the document using PdfExporter. Dim pdfex As C1.C1Preview.PdfExporter = New C1.C1Preview.PdfExporter ' Set the properties of the DocumentInfo field. pdfex.DocumentInfo.Author = " pdfex.ShowOptions = False pdfex.Preview = True pdfex.Export("c:\temp\myfile.pdf") |
Copy CodeC#
// Export the document using PdfExporter. C1.C1Preview.PdfExporter pdfex = new C1.C1Preview.PdfExporter(); // Set the properties of the DocumentInfo field. pdfex.DocumentInfo.Author = "; pdfex.ShowOptions = false; pdfex.Preview = true; pdfex.Export(@"c:\temp\myfile.pdf"); |