

WordDocument.ExportAsFixedFormat(copyPDF, WdExportFormat.wdExportFormatPDF) WordDocument = (filename, ReadOnly: true) ĬopyPDF = + "Files\\" + "Idformcopy" + CurrentTime + ".pdf" Application appword = new .Application() This.FindAndReplace(wordApp, "", txtCountr圜()) This.FindAndReplace(wordApp, "", txtFname.Text) Call FindAndReplace()function for each change Ref missing, ref isVisible, ref missing, ref missing,

Ref missing, ref missing, ref missing, ref missing, Ref readOnly, ref missing, ref missing, ref missing, open Word document named Idformcopy.docĪDoc = (ref filename, ref missing, create & define filename object with Idformcopy.doc Application wordApp = new .ApplicationClass() String copyfile = + "Files\\" + "Idformcopy" + CurrentTime + ".doc" String orgfile = + "Files\\" + "Idform.doc" P.WaitForExit() // possibly with a timeout Just to kill WINWORD.EXE if it is runningįoreach (Process p in ("winword")) Protected void btnPDFgnrate_Click(object sender, EventArgs e) I have achieved this using MS office dlls but now I want it through open office.Ĭheck below code which is working fine for MS office.Plz suggest me changes. odt file to write user data in to it and original template remaine same.Finally I want to convert it to PDF. odt file as template in project folder with "" tags and I want to replace all the tags with user input data from web page.Every time I am copying a. I have a asp.net web form, I want to convert it to PDF with all the user entered data.Now I am maintaining.
