Update 20250618
This commit is contained in:
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,5 +1,6 @@
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -60,6 +61,7 @@ namespace OnDocOffice
|
||||
try
|
||||
{
|
||||
excel = new Microsoft.Office.Interop.Excel.Application();
|
||||
excel.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityByUI;
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
@@ -344,6 +346,7 @@ namespace OnDocOffice
|
||||
////ExcelInst.Visible = true;
|
||||
|
||||
word = (Microsoft.Office.Interop.Word.Application)Interaction.CreateObject("Word.Application");
|
||||
word.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityByUI;
|
||||
//word = new Microsoft.Office.Interop.Word.Application();
|
||||
word.Run("Autoexec");
|
||||
word.NormalTemplate.Saved = true;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user