diff --git a/PROMS/LBWordLibrary/LBComObject.cs b/PROMS/LBWordLibrary/LBComObject.cs index b770f42c..b5a946d0 100644 --- a/PROMS/LBWordLibrary/LBComObject.cs +++ b/PROMS/LBWordLibrary/LBComObject.cs @@ -135,6 +135,11 @@ namespace LBWordLibrary { get { return (GetProperty("BackgroundPrintingStatus") as int? ?? 0); } } + public LBWdWindowState WindowState + { + get { return (LBWdWindowState)GetProperty("WindowState"); } + set { SetProperty("WindowState", value); } + } public void Quit() { InvokeMethod("Quit", Missing.Value, Missing.Value, Missing.Value); @@ -151,6 +156,10 @@ namespace LBWordLibrary { InvokeMethod("PrintOut", Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, FileName, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight); } + public void Activate() + { + InvokeMethod("Activate"); + } } public partial class LBDocuments : LBComObjectList /* Collection */ { @@ -349,6 +358,12 @@ namespace LBWordLibrary get { return new LBView(GetProperty("View")); } } } + public enum LBWdWindowState + { + wdWindowStateNormal = 0, + wdWindowStateMaximize = 1, + wdWindowStateMinimize = 2 + } public partial class LBRange : LBComObject { public LBRange() { }