Using C# I have succeeded in opening a word document and writing text to it. Now I want to insert a text box into the word document also by using c# code and I succeeded with the code I found elsewhere on internet. This was the code:-
Microsoft.Office.Interop.Word.Shape textbox = oDoc.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, 0, 0, 70, 30); //MsoTextOrientation.msoTextOrientationVertical
textbox.TextFrame.TextRange.Text = "Date";
It worked fine. But my problem, I would like to hide the default border of the text box with c# code. I tried searching for it but could not find one.
Could anyone help me? Thanks in Advance Unnikrishnan, India