C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




getting the spaces in between two lines while insert content in word document


Posted Date: 05 Sep 2008      Total Responses: 0

Posted By: vidhyashri       Member Level: Silver     Points: 1



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);





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : Capture Role from database into Session
Previous : dot net parameterize query
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use