How to remove lines from word doc dynamically

Posted by nageshgatla7-20699 under ASP.NET on 6/4/2013 | Points: 10 | Views : 637 | Status : [Member] | Replies : 0
Hi am nagesh,
I want one help friends,
I have one word doc in my project path. and loading from database values in specific fields
mentioned in doc.. like


but if «Add2» not came from DB then its giving 1 line space which i don't want.
i dont want 1 line space if «Add2» data not came from to remove specific
field and line from doc dynamicaly ( actully i want to remove from clone of that doc)
below is my code:
Document doc = new Document(formpath);

Document dstDoc = (Document)doc.Clone(true);


where dstDoc is clone of my doc and dtDetails is my data from DB

Please help..


(No response found.)

Login to post response