Word Resize/Zoom problem?

From: Csabi (Csabi_at_discussions.microsoft.com)
Date: 02/11/05


Date: Fri, 11 Feb 2005 03:37:06 -0800

Hi,

I'm developing a C#.NET application which insertes data into Word.

When I open the Word-document(template), then I set it's Zoom to be
PageFitFullPage:

wordApp.WindowState = Word.WdWindowState.wdWindowStateNormal;
wordApp.ActiveWindow.ActivePane.View.Zoom.PageFit =
Word.WdPageFit.wdPageFitFullPage;

My problem is, that when I close the .NET application, then I leave Word to
be available too, I resize Word to be 80% width of the desktop, and 80%
height. After this, I set the PageFit, and Zoom properties:

wordApp.ActiveWindow.ActivePane.View.Zoom.PageFit =
Word.WdPageFit.wdPageFitNone;

wordApp.ActiveWindow.ActivePane.View.Zoom.Percentage = zoomPercentage;

The zoomPercentage value is 100, so I set the Zoom to be 100%.

My problem is, that on many documents, after closing the C# application, I
try to resize the Word app, and it still seems to be in PageFitFull mode,
because if I resize, the Zoom value changes (and also the full page is
visible in Word). If I manually enter 100% in the Zoom of Word, it will stay
100% when I resize.

The strange thing is, that on some other documents, if I ran this code, it
works properly! So if I resize the WordApp the Zoom stays on 100%!

I don't know what can be the difference between the 2 documents (they are
templates though), maybe anyone some advice, how to solve this problem?

Thanks,
Csabi



Relevant Pages

  • Re: automatically zooming windows
    ... This would cause Word to resize the window ... > If I've been working on the document on the PowerBook and subsequently ... so either way I have to manually resize the window. ... > seems to zoom to what *would* be the size of the page if the Zoom ...
    (microsoft.public.mac.office.word)
  • Re: Autmatically change View
    ... Bob, thank you very much for the quick reply. ... tabloid and it automatically resizes to that page width. ... happens if you are in print preview...it resize each page for you. ... the status bar to turn on 'Zoom' and click on the percentage zoom choice on the status bar to open the dialog ...
    (microsoft.public.word.pagelayout)
  • Re: Drawing 25 000 Shape fast
    ... - pan (let's say that i'm at Zoom Factor 2000) ... So if an object was previous 1x1 pixel, ... What's the difference between zoom and resize, assuming vector images? ... Have you considered using Java3D/OpenGL and taking advantage of the 3D accelerator to perform zoom and pan? ...
    (comp.lang.java.gui)
  • Zoom-in and Zoom Out
    ... a feature I am just ignorant of, ... and zoom into a state and resize, ... a city and resize, zoom into a street and resize, ... I thought I could do the same with a chart. ...
    (microsoft.public.excel.charting)
  • Re: Drawing 25 000 Shape fast
    ... - pan (let's say that i'm at Zoom Factor 2000) ... So if an object was previous 1x1 pixel, ... What's the difference between zoom and resize, assuming vector images? ...
    (comp.lang.java.gui)