Word Resize/Zoom problem?
From: Csabi (Csabi_at_discussions.microsoft.com)
Date: 02/11/05
- Next message: Helmut Weber: "Re: Applying the List Bullet Style on specific paragraphs"
- Previous message: Jezebel: "Re: how do I Create Document with x pages then goto page 1, add data, goto page 2 add data etc..."
- Next in thread: Csabi: "RE: Word Resize/Zoom problem?"
- Reply: Csabi: "RE: Word Resize/Zoom problem?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Helmut Weber: "Re: Applying the List Bullet Style on specific paragraphs"
- Previous message: Jezebel: "Re: how do I Create Document with x pages then goto page 1, add data, goto page 2 add data etc..."
- Next in thread: Csabi: "RE: Word Resize/Zoom problem?"
- Reply: Csabi: "RE: Word Resize/Zoom problem?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|