Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:55:38+00:00 2026-06-06T11:55:38+00:00

This question is also at sharepoint.stackexchange.com but has failed to get views or responses

  • 0

This question is also at sharepoint.stackexchange.com but has failed to get views or responses so I’m posting here.

I’m trying to set the zoom level of a Visio document which is shown through the Visio Web Service.

http://mysite/_layouts/VisioWebAccess/VisioWebAccess.aspx?id=/Shared%20Documents/MyDiagram.vdw

I want to use the ‘fit to page’ zoom level which is achieved by pressing the button on the right of the toolbar. My first thought was click the button via javascript, but didn’t get immediate success and also stumbled across MSDN articles on Objects in the Visio Services JavaScript API, the Vwa.VwaControl.getActivePage Method and the Vwa.Page.setZoom Method.

I can successfully construct a VwaControl object

vwaControl = new Vwa.VwaControl("ctl00_PlaceHolderMain_VisioWebAccess");

but I get null when I call getActivePage() on this control.

I’ve tried constructing other VwaControl using other ids from the page but none of them are valid – I get an error like “VwaControl does not exist for id {0}”. I’ve tried traversing down the tree from vwaControl._control._zoomControl._fitButton._clickDelegate but I don’t know how to fire that delegate.

Has anyone implemented an ‘auto zoom to fit’ feature in the VisioWebAccess.aspx page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:55:39+00:00Added an answer on June 6, 2026 at 11:55 am

    See answer at sharepoint.stackexchange.com – the zoom and positioning is saved within the document, so set it there. I was unable to control the zoom using javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I also posted this question on the Google Group https://groups.google.com/forum/?fromgroups#!topic/d3-js/DYiVeC544ws , but saw that
This may seem an easy question, but not to me, also a search has
I'd like to ask this question (also here ), but this time about C++.
This question also has the answer , but it mentions DB2 specifically. How do
Also can you please answer this question? how do I get co-ordinates of selected
(I have also asked this question on SharePoint Overflow .) I have a SharePoint
This question has also been asked at Problems with MediaRecorder class setting audio source
I was reading over this question and wondered if the accepted answer might also
I agree that this question is duplicate. Please bear with me. I was also
( I don't know whether should I also post this question to ServerFault, since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.