VBA Code :-
ActiveDocument.ActiveWindow.ActivePane _
.Zooms(wdNormalView).Percentage = 100
*
ActiveDocument.ActiveWindow.ActivePane _
.Zooms(wdPrintView).PageFit = wdPageFitFullPage
C# Code :-
public void ZoomCollection()
{
ThisApplication.ActiveDocument.ActiveWindow.ActivePane.Zooms.Item(Microsoft.Office.Interop.Word.WdViewType.wdNormalView).Percentage = 100;
ThisApplication.ActiveDocument.ActiveWindow.ActivePane.Zooms.Item(Microsoft.Office.Interop.Word.WdViewType.wdPrintPreview).PageFit = Microsoft.Office.Interop.Word.WdPageFit.wdPageFitFullPage;
}
Showing posts with label Refernce Collection (Z) :- Zoom Collection. Show all posts
Showing posts with label Refernce Collection (Z) :- Zoom Collection. Show all posts
Saturday, August 7, 2010
Subscribe to:
Posts (Atom)