Visual Basic (Declaration) | |
---|---|
Public Class EmfDocumentOptions Inherits DocumentOptions |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class EmfDocumentOptions : DocumentOptions |
C++/CLI | |
---|---|
public ref class EmfDocumentOptions : public DocumentOptions |
This example will create a new Windows Enhanced Meta File (EMF) file using the various supported options.
Visual Basic | Copy Code |
---|---|
' Windows API functions needed to load/delete an EMF |
C# | Copy Code |
---|---|
// Windows API functions needed to load/delete an EMF |
The Windows Enhanced Meta File (EMF) format does not support multi-page documents. Therefore, only the last page added with the DocumentWriter.AddPage will be used in the final document.
The options set in the EmfDocumentOptions class will be used when the user saves a document using the DocumentFormat.Emf format.
To change the options used with the EMF format, perform the following steps:
Use the DocumentWriter.GetOptions method of the DocumentWriter object being used. Passing DocumentFormat.Emf to the Format parameter. Note that the resulting object from the base DocumentOptions class needs to be cast to EmfDocumentOptions. Use the various EmfDocumentOptions properties to change the options. Use DocumentWriter.SetOptions to set the new options in the engine. Now you can call the DocumentWriter.BeginDocument method (with DocumentFormat.Emf for the format parameter) to create a new document and add the pages.
Currently, the EmfDocumentOptions class contains no extra options.
System.Object
Leadtools.Forms.DocumentWriters.DocumentOptions
Leadtools.Forms.DocumentWriters.EmfDocumentOptions
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family