|
|
@ -17,6 +17,7 @@ using System.Linq;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Spire.Doc.Documents;
|
|
|
|
using Spire.Doc.Documents;
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace BP.Pub
|
|
|
|
namespace BP.Pub
|
|
|
@ -1331,6 +1332,16 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
docs.Close();
|
|
|
|
docs.Close();
|
|
|
|
|
|
|
|
Process[] current = Process.GetProcesses();
|
|
|
|
|
|
|
|
//遍历与当前进程名称相同的进程列表
|
|
|
|
|
|
|
|
foreach (Process process in current)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//如果实例已经存在则kill当前进程
|
|
|
|
|
|
|
|
if (process.ProcessName.ToUpper().Equals("WINWORD"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
process.Kill(); break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1735,6 +1746,16 @@ trgaph108\trleft5\trbrdrl\brdrs\brdrw10 \trbrdrt\brdrs\brdrw10 \trbrdrr\brdrs\br
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
docs.Paragraphs[1].Range.Delete();
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
docs.SaveAs2(path);
|
|
|
|
docs.Close();
|
|
|
|
docs.Close();
|
|
|
|
|
|
|
|
Process[] current = Process.GetProcesses();
|
|
|
|
|
|
|
|
//遍历与当前进程名称相同的进程列表
|
|
|
|
|
|
|
|
foreach (Process process in current)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//如果实例已经存在则kill当前进程
|
|
|
|
|
|
|
|
if (process.ProcessName.ToUpper().Equals("WINWORD"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
process.Kill(); break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|