Hi friends,
I am having two files. one is "header.doc" and other is "content.doc". I need the merge these two files. so i insert the content file in header file through the following coding. while inserting the content file in header file. I m getting the spaces in between two lines. I need to avoid these lines. how to avoid it?
Microsoft.Office.Interop.Word.Document dmtDocs = wordApp.Documents.Open(ref temphdr, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj); object start = 0; object end = 0; string HtmlOrDmtFilePath = ViewState["htmlpath"].ToString(); string DMTPath = HtmlOrDmtFilePath.Replace(".HTML", ".DMT"); object dmtpaths = DMTPath; Microsoft.Office.Interop.Word.Range rng = dmtDocs.Range(ref start, ref end); rng.InsertFile(DMTPath, ref nullobj, ref nullobj, ref nullobj, ref nullobj); dmtDocs.Close(ref nullobj, ref nullobj, ref nullobj);
|
No responses found. Be the first to respond and make money from revenue sharing program.
|