You receive an "An error occurred while attempting to save the document. Pages created may be invalid." error message when the target parameter for the RunAddOnWArgs() function does not have the correct file name extension in Visio 2003 (828960)



The information in this article applies to:

  • Microsoft Office Visio Standard 2003
  • Microsoft Office Visio Professional 2003

SYMPTOMS

When you try to programmatically save a drawing as a Web page with the RunAddOnWArgs() function in a ShapeSheet, and you specify a destination file name in the Target parameter that does not have an .htm or an .html file name extension, you may receive the following error message:
An error occurred while attempting to save the document. Pages created may be invalid.

Note In some instances, you may not receive an error message even though your command is not successful and your drawing is not saved as a Web page.

MORE INFORMATION

If you pass a numeric value that does not exist for the /ScreenRes parameter when you are using the RunAddOnWArgs() function in a ShapeSheet, the default resolution is 800x600. However, if you pass an unrecognized string as the /ScreenRes parameter, the default resolution is source image instead of the 800x600 default resolution.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.

Modification Type:MinorLast Reviewed:1/12/2006
Keywords:kbsavefile kbpending kberrmsg kbprb KB828960 kbAudEndUser kbAudDeveloper kbAudITPRO