TargetPath Property
Visio Save As Web Reference |
Specifies the path where the Web page and its supporting files are placed. Read/write.
Syntax
expression.TargetPath
expression An expression that returns a VisWebPageSettings object.
Return Value
String
Remarks
When you save a drawing as a Web page, you must use the TargetPath property to supply the full target path. The TargetPath property is reset to a null value after each export: each time you save a drawing as a Web page you must explicitly supply the target path. In addition, the TargetPath value is not persisted between sessions of Visio.
The value of theTargetPath property corresponds to the folder name and file name selected in the Save As dialog box (on the File menu, click Save as Web Page).
Example
The following macro shows how to save the active document as a Web page and place the resulting HTML file and supporting files as flat files in the targetpath folder. Because the StoreInFolder property is set to False, the supporting files are placed in the same folder as the root HTML file, instead of in a separate folder that has the name filename_files or filename.files, depending on the language.
Before running this macro, replace targetpath with a valid target path on your computer and replace filename.htm with the file name that you want to assign to your Web page.
|
See Also