Microsoft KB Archive/828960

= 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 2007 or in Visio 2003 =

Article ID: 828960

Article Last Modified on 11/14/2006

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * Microsoft Office Visio Professional 2003
 * Microsoft Office Visio Standard 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 &quot;Applies to&quot; section of this article.

Additional query words: vso2007 visio2003

Keywords: kbsavefile kbpending kberrmsg kbprb KB828960

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.