update 20250129
This commit is contained in:
@@ -42,7 +42,13 @@ namespace OfficePrinter
|
||||
wordDocument = appWord.Documents.Open(Filename);
|
||||
Thread.Sleep(OfficeSleep);
|
||||
appWord.Visible = true;
|
||||
|
||||
appWord.Activate();
|
||||
wordDocument.Activate();
|
||||
Microsoft.Office.Interop.Word.Window window = appWord.ActiveWindow;
|
||||
window.SetFocus();
|
||||
window.Activate();
|
||||
appWord.WindowState = WdWindowState.wdWindowStateMinimize;
|
||||
appWord.WindowState = WdWindowState.wdWindowStateMaximize;
|
||||
if (printmacro == "") return "";
|
||||
try
|
||||
{
|
||||
@@ -50,6 +56,7 @@ namespace OfficePrinter
|
||||
}
|
||||
catch (Exception e) {
|
||||
error = e.Message.ToString()+" / "+printmacro;
|
||||
|
||||
}
|
||||
Thread.Sleep(OfficeSleep);
|
||||
wordDocument.Close();
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Logging">
|
||||
<HintPath>..\Client\bin\Debug\Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Office.Interop.Word.15.0.4797.1004\lib\net20\Microsoft.Office.Interop.Word.dll</HintPath>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
e00516c95ac2185abce4d5a9b57f77ce0dde43a3c9cef3b199e9ef42746933f1
|
||||
aa46558934c57c1dee0d62ddc8c2c4c41e93018c41a69ed585458eb2e1549ea2
|
||||
|
||||
@@ -14,3 +14,7 @@ E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\obj\Debug\OfficePrinter.csproj.Co
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\obj\Debug\OfficePr.6C7E73FF.Up2Date
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\obj\Debug\OfficePrinter.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\obj\Debug\OfficePrinter.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\bin\Debug\Logging.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\bin\Debug\NLog.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\bin\Debug\NLog.Database.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\OfficePrinter\bin\Debug\Logging.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user