Exporting C1PrintDocument to HTML
To export C1PrintDocument to HTML, set the ExportToHTML method in code or in the Save As dialog box:
In Code
The following code saves the C1PrintDocument as C1Preview.html in the Temp directory:
Me.C1PrintDocument1.ExportToHTML("c:\temp\C1Preview.htm", "Images", False, C1.C1PrintDocument.HtmlTOCTypeEnum.Outline, C1.C1PrintDocument.HtmlTOCLinksLocationEnum.LeftFrame, "", False, 100, True)
• C#
this.c1PrintDocument1.ExportToHTML(@"c:\temp\C1Preview.htm", "Images", false, C1.C1PrintDocument.HtmlTOCTypeEnum.Outline, C1.C1PrintDocument.HtmlTOCLinksLocationEnum.LeftFrame, "", false, 100, true);
In the Save As Dialog Box
You can also export C1PrintDocument in the preview using the Save As dialog box:
1. Click the File Save button located on the toolbar.
The Save As dialog box will open.
2. Enter a name for the HTML file in the File name box and select HTML (*.htm) from the Save as type box.
3. Click Save. The Save as HTML dialog box will open.
4. Confirm your settings and click OK.
The document is created in the folder you specified.
|