<< Click to Display Table of Contents >> WriteDoc |
Writes the currently open document to an external file.
Depending on the file suffix, the file is written to the following format:
•.vpe – Native VPE document file format
•.pdf – PDF file format
•.htm or .html – HTML file format (requires Professional Edition or higher)
•.xml – XML file format (requires Professional Edition or higher)
•.odt – Open Document Text file format (requires Professional Edition or higher)
For details about creating and using VPE document files, please see the "Programmer's Manual", chapter "Programming Techniques", subchapter "VPE Document Files".
For details about creating PDF files, please see the "Programmer's Manual", chapter "The PDF Export Module".
For details about creating HTML files, please see the "Programmer's Manual", chapter "The HTML Export Module".
method boolean VPE.WriteDoc(
string FileName
)
string FileName
the path and filename
Returns:
Value |
Description |
True |
Success |
False |
Failure |
Remarks:
In case of an error, LastError is set.
Depending on the setting of the property DocExportType, you can instruct VPE to write the file to a desired file format (VPE, PDF or HTML), regardless of the supplied file name's suffix.
The property Compression controls, whether a written document (VPE or PDF file format) is compressed.
Protection
VPE Document files can be read, edited and saved using our visual designer dycodoc.
VPE includes VPE View (see "VPE View - the Document Viewer" in the Programmer's Manual) a royalty-free Document Viewer for VPE Documents.
If you want to protect your files from being edited, use the property EditProtection.