|Path as String
A String expression that specifies the path and the file names to generate the files. The Path should/may include the %i which indicates the index of
the page being printed to the specified format. The index starts from 1 for the first
page, 2 for second page, and so on. For instance, the C:\Temp\Print\Page%i.emf
exports the pages to files such as C:\Temp\Print\Page1.emf, C:\Temp\Print\Page2.emf,
and so on depending on the number of pages.
If the Path parameter is not empty, the extension ( characters after last dot ) determines the graphical/ format of the file to be saved as follows:
|0 meaning that no pages where generated or created ( due some errors like write error, not setting the PrintExt property before and so on ). Any value greater than 0 indicates the number of files being created.
• Built-in scaling information
• Built-in descriptions that are saved with the file
• Improvements in color palettes and device independence
The EMF format is an extensible format, which means that a programmer can modify the original specification to add functionality or to meet specific needs. You can paste this format to Microsoft Word, Excel, Front Page, Microsoft Image Composer and any application that know to handle EMF formats.
The following VB6 sample generates EMF files instead printing the Exontrol's ExG2antt/COM content:
With Print1 Set .PrintExt = G2antt1.Object Debug.Print "Files generated: " & .CopyTo("C:\Temp\Print\Page%i.emf") End With
The following VB/NET sample generates EMF files instead printing the Exontrol's ExG2antt/NET content:
With Exprint1 .PrintExt = Exg2antt1 System.Diagnostics.Debug.WriteLine("Files generated: " & .CopyTo("C:\Temp\Print\Page%i.emf")) End With