if
(wApp.ActiveDocument.Bookmarks.Exists(strbook[i].ToString()))
{
wA
pp.ActiveDocument.Bookmarks.get_Item(ref
tempobject).Select();
wApp.Selection.Text
=
demostr[i].ToString
();
}
}
Microsoft.Office.Interop.Word.Table
wordTablexSoft
=
wDoc.Tables[1];
InsertTabletoData(wordTablexSoft, ref wDoc, ref wApp);
//
收
尾
工
作
object
o
=
null;
//string
guid
=
System.Guid.NewGuid().T
oString();
string guid = caseid;
object sFileName =
Server.MapPath("/demo/Officebak/"
+
guid
+
".doc");
if
(wDoc.SaveFormat
==
(int)Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatDocument)
{
wDoc.Application.ActiveDocument.SaveAs(ref
sFileName,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing,
ref
missing);
}
wDoc.Close(ref