Visual Basic (Declaration) | |
---|---|
Public MustInherit Class DocumentOptions |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public abstract class DocumentOptions |
C++/CLI | |
---|---|
public ref class DocumentOptions abstract |
You cannot use the DocumentOptions class directly. Instead, you use one of the derived classes to get and set the options associated with a document format. The following table lists the document formats and the DocumentOptions derived class associated with it:
To change the options used with a particular format, perform the following steps:
Use the DocumentWriter.GetOptions method of the DocumentWriter object you are using passing DocumentFormat desired in to the format parameter. Note that the resulting object from the base DocumentOptions class needs to be cast to an appropriate derived class described in the table above. Use the various derived class properties to change the options. Use DocumentWriter.SetOptions to set the new options in the engine. Now call the DocumentWriter.BeginDocument method (using the desired DocumentFormat value for the format parameter) to create a new document and add the pages.
System.Object
Leadtools.Forms.DocumentWriters.DocumentOptions
Leadtools.Forms.DocumentWriters.DocDocumentOptions
Leadtools.Forms.DocumentWriters.DocxDocumentOptions
Leadtools.Forms.DocumentWriters.EmfDocumentOptions
Leadtools.Forms.DocumentWriters.HtmlDocumentOptions
Leadtools.Forms.DocumentWriters.LtdDocumentOptions
Leadtools.Forms.DocumentWriters.PdfDocumentOptions
Leadtools.Forms.DocumentWriters.RtfDocumentOptions
Leadtools.Forms.DocumentWriters.TextDocumentOptions
Leadtools.Forms.DocumentWriters.XpsDocumentOptions
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family