//更新目录
int count = docReport.TablesOfContents.Count;
for (int i = 0; i < count;i++ )
{
docReport.TablesOfContents[i+1].Update();
}
//更新目录
int count = docReport.TablesOfContents.Count;
for (int i = 0; i < count;i++ )
{
docReport.TablesOfContents[i+1].Update();
}