Word.Font fc= new Word.Font();
try
{
Console.WriteLine("Formatting the title");
start = 0; end = 40;
range=Word_doc.Range(ref start, ref end);
range.Font.Size=24;
range.Font.Bold=1;
range.Font.Color=Word.WdColor.wdColorGray30;
start = 40; end = 54;
range=Word_doc.Range(ref start, ref end);
range.Font.Size=14;
}
catch(Exception e)
{
Console.WriteLine(" Font exception:{0}", e.ToString());
}
try
{
Console.WriteLine("Formatting the title");
start = 0; end = 40;
range=Word_doc.Range(ref start, ref end);
range.Font.Size=24;
range.Font.Bold=1;
range.Font.Color=Word.WdColor.wdColorGray30;
start = 40; end = 54;
range=Word_doc.Range(ref start, ref end);
range.Font.Size=14;
}
catch(Exception e)
{
Console.WriteLine(" Font exception:{0}", e.ToString());
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货