This documentation is archived and is not being maintained.

PriFormat Property [Visio 2003 SDK Documentation]

Office 2003

Specifies the primary output format for the Web page. Returns String. Read/write String.

retString = object.PriFormat

object.PriFormat = stringVal

retString String. The primary output format for the Web page. The default is VML. See "Remarks" for possible values.

object Required. An expression that returns a VisWebPageSettings object.

stringVal Required String. The new primary output format for the Web page. See "Remarks" for possible values.


If you select a primary output format that is not supported by all browsers, you should also select a secondary output format for older browsers. To do this, see the SecFormat property.

For information about which browsers are compatible with selected formats, see the AltFormat property.

Possible values for the PriFormat property are as follows:

  • SVG (Scalable Vector Graphics)
  • JPG (JPEG File Interchage Format)
  • GIF (Graphics Interchange Format)
  • PNG (Portable Network Graphics)
  • VML (Vector Markup Language)

This value corresponds to the value selected in the Output formats list on the Advanced tab of the Save as Web Page dialog box (on the File menu, click Save as Web Page, click Publish, and then click Advanced).


The following macro shows how use the PriFormat property to set the primary output format for the Web page to JPG.

Before running this macro, replace path\filename.htm with a valid target path on your computer and the filename that you want to assign to your Web page.

    Public Sub PriFormat_Example()
    Dim vsoSaveAsWeb As VisSaveAsWeb 
    Dim vsowebSettings As VisWebPageSettings

    Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject 
    Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings
    With vsoWebSettings
        .PriFormat = "JPG"
        .TargetPath = "path\filename.htm" 
    End With

End Sub