Type | Description | |||
File as String | A String expression that indicates the name of the file being saved ( EMF file ). If present, the CopyTo property retrieves True, if the operation succeeded, else False it is failed. If the File parameter is missing or empty, the CopyTo property retrieves an one dimension safe array of bytes that contains the EMF content. | |||
Variant | A boolean expression that indicates whether the File was successful saved, or a one dimension safe array of bytes, if the File parameter is empty string. |
This format is an improvement over the Windows Metafile Format and contains extended features, such as the following
• 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 VB sample saves the control's content to a file:
If (List1.CopyTo("c:\temp\test.emf")) Then MsgBox "test.emf file created, open it using the mspaint editor." End If
The following VB sample prints the EMF content ( as bytes, File parameter is empty string ):
Dim i As Variant For Each i In List1.CopyTo("") Debug.Print i Next