TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chetan Allipur
NA
541
167.5k
How to set the font color blue to Table of contents.
Jul 24 2017 3:34 AM
How to set the font color blue and Indent to Table of contents using word VSTO
Here is my code.
Microsoft.Office.Interop.Word.TableOfContents toc = doc1.TablesOfContents.Add(wordsec.Range, ref otrue, ref oUpperHeadingLevel, ref oLowerHeadingLevel, ref missing,
ref missing, ref otrue, ref otrue, ref otrue, ref otrue, ref otrue, ref ofalse);
toc.TabLeader = WdTabLeader.wdTabLeaderDots;
toc.Update();
Microsoft.Office.Interop.Word.Range rngTOC = toc.Range;
if (checkBoxColor.Checked == true)
{
rngTOC.Font.Color = WdColor.wdColorBlue;
}
wordsec.set_Style(WdBuiltinStyle.wdStyleNormal);
this.Hide();
Reply
Answers (
1
)
Please convert VBA to c#.Actully it is in VBA MACRO
SQL 2008 R2 error: SQL Network Interfaces, error: 26