Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
I am using VSTO word add ins
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
chetan Allipur
7y
231
1
Reply
I want to insert the text in the center in my code. I cant able to do that. please help me here is my code
Document oWordDoc = Globals.ThisAddIn.Application.ActiveDocument;
Paragraph oPara1 = null;
var pText = oWordDoc.Paragraphs.Add();
pText.Format.SpaceAfter = 10f;
pText.Range.Font.Size = 12;
pText.Range.Font.Name = "TimesNewRoman";
pText.Range.Font.Bold = 1;
pText.Range.Text = String.Format("Table" + " " + (num).ToString() + " " + tabletext.Text);
pText.Range.InsertParagraphAfter();
this.Hide();
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Error : in Generate Rdlc Report using Windows Form Applicati
Update Password in Windows Form C#