[]
        
(Showing Draft Content)

C1.C1Preview.Export.HtmlExporter

HtmlExporter Class

Represents an object that can be used to export a C1PrintDocument object to HTML.

Inheritance
HtmlExporter
Namespace: C1.C1Preview.Export
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class HtmlExporter : ComplexExporter

Constructors

Name Description
HtmlExporter()

Initializes a new instance of the HtmlExporter class.

Properties

Name Description
ExportNavBar

Gets or sets a template used to create a navigation bar with page numbers. (Note: both Paginated and GeneratePageLinks must be set to true for this to work).

The format of the string is as follows: up to four "%s" strings are replaced with links to the first, previous, next and last pages, correspondingly. Up to two "%d" strings are replaced with the current and total page numbers.

For instance:

"<a %s>first</a> <a %s>prev</a> Page %d of %d <a %s>next</a> <a %s>last</a>"

ExportProvider

Gets HtmlExportProvider.

GenerateOutline

Gets or sets a value indicating whether to create a frame containing the document's outline.

Gets or sets a value indicating whether to generate hyperlinks to individual pages. Note that this only works if Paginated is also true.

GeneratePageSeparators

Gets or sets a value indicating whether to delimit individual pages of the original document with horizontal lines.

ImageFolder

Gets or sets the path name of the folder where images are to be saved.

LinksLocation

Gets or sets the location of hyperlinks on the generated page(s) (the hyperlinks can contain outline entries or page numbers).

Gets or sets the maximum number of page hyperlinks in a row.

PagePerFile

Gets or sets a value indicating whether to export each page of the document into a separate file.

PreserveExactHeight

Gets or sets a value indicating whether export should try to preserve the exact original height of all elements. Generally, setting this property to false makes the resulting HTML document more flexible.

Scaling

Gets or sets the scaling factor applied to all elements of the resulting HTML document, in percent.

Methods

Name Description
Clear()

Resets the internal state of the exporter and all its public properties.

CopyPropertiesFromOptionsForm(ExportOptionsFormBase)

Copies the options from the specified export options form to corresponding properties on the current exporter.

CopyPropertiesToOptionsForm(ExportOptionsFormBase)

Copies the properties of the current exporter to corresponding user-editable options of the specified export options form.

InternalExport()

Performs export to a disk file. If OutputFileName has not been set, this method returns immediately.

ProcessPage(Metafile, C1MetafileInfo, int, bool)

Not supported for this class.

Reset()

Resets the internal state of the exporter.

See Also