User-1949221332 posted
Hi All,
I want to incorporate an issue that i want to draw a line in MS word using c#.net. but i did not find any solution. so can any body help me. i am using "Microsoft.Office.Interop.Word" Library.
Your quick response will be highly appreciated.
Regards,
Ali bin zubair
Oh yes just got the solution.....From nikho
Look at the
Shapes.Addline method.
Something like:
// show word
Word._Application wordApp = new Word.Application();
wordApp.Visible = true;
// add doc
Word._Document wordDoc = wordApp.Documents.Add(ref Missing, ref Missing, ref Missing, ref Missing);
// draw line
wordDoc.Shapes.AddLine(10f,10f, 500f, 10f, ref Missing);
Regards
Ali bin zubair