Hi,
In my web page i execute a mail merge on a doc file and i open it on my browser.
doc = New Document(Request.ServerVariables("APPL_PHYSICAL_PATH") & "\doc_template.docx")
doc.MailMerge.Execute(New String() {"epispeydon", "epimelitis", "epimelitis_text", "customer", "customer_phone_number", "etos_num", "etos_chars", "epimelitis_ypogr", "apeythy"}, New Object() {epispeydon.Text, epimelitis.Replace("\v", ControlChar.LineBreakChar), epimelitis.Replace("\v", ""), DropDownList1.SelectedItem.Text, customer_phone, Now.Year, retWord(Val(Now.Year.ToString.Substring(2, 2))), epimelitis.Substring(0, pos - 1), tab.Text})
doc.Save(Request.ServerVariables("APPL_PHYSICAL_PATH") & "" + tab.Text + ".docx", SaveFormat.Docx)
I make changes in the doc file. Then i want to save the doc file with the changes i’ve made.
Can i do that with VB code and how? Is there another way?
I tried the standard save button of the word but it didn’t save the changes.
Regards,
eleni