G
Gidi
Hi,
I've a template word document, and using my C# application, i open
it(allwoing to modify) and want to modify it.
the template has const string (i.e. "CONST STRING"), and i want to send a
new string with my application and replace the const string.
How can i do it?
I tried using:
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref
fileName,ref missing,ref readOnly, ref missing, ref missing, ref missing, ref
missing, ref missing, ref missing, ref missing, ref missing, ref
isVisible,ref missing,ref missing,ref missing);
WordApp.Selection.Find.Replacement.Text.Replace("CONST STRING","NEW STRING");
aDoc.Activate();
aDoc.Save();
aDoc.Close(ref saveChanges,ref originalFormat,ref routeDocument);
I've a template word document, and using my C# application, i open
it(allwoing to modify) and want to modify it.
the template has const string (i.e. "CONST STRING"), and i want to send a
new string with my application and replace the const string.
How can i do it?
I tried using:
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref
fileName,ref missing,ref readOnly, ref missing, ref missing, ref missing, ref
missing, ref missing, ref missing, ref missing, ref missing, ref
isVisible,ref missing,ref missing,ref missing);
WordApp.Selection.Find.Replacement.Text.Replace("CONST STRING","NEW STRING");
aDoc.Activate();
aDoc.Save();
aDoc.Close(ref saveChanges,ref originalFormat,ref routeDocument);