How to replace a <<ABC>> With table in word document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cholletivinod
    New Member
    • Feb 2008
    • 1

    How to replace a <<ABC>> With table in word document

    Hi friends ,
    am creating one application in dat i want to replace particular text(<<ABC>>) with a table in word document am using below code
    but am getting text if i open the word document please help me

    System.Text.Str ingBuilder strDocContent = strDocContent.R eplace("<<ABC>> ", "<table><tr><td >a</td></tr></table>");

    System.IO.Strea mWriter stmWriter = new System.IO.Strea mWriter(ServerP ath + "Quotation " + Quote.ToString( "0000000#") + ".doc");
    stmWriter.Write (strDocContent) ;
    stmWriter.Close (); stmWriter.Dispo se();
Working...