Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to fix the warning ": hole "rgTitle" occurs in multiple version compatibility sections of the Word document "?

1 次查看(过去 30 天)
I'm using a custom word template document to generate a report with the report generator.
During the report generation, I have the following warning which appears twice :
Warning: hole "rgTitle" occurs in multiple version compatibility sections of the Word document
> In rpt_xml.db_output/convertReport>locRunDB2DOMEngine (line 221)
In rpt_xml.db_output/convertReport (line 27)
In rptgen.coutline/makeDocumentPost (line 40)
In rptgen.coutline/execute (line 21)
In RptgenML.Root/cbkReport>locRunReport (line 95)
In RptgenML.Root/cbkReport (line 24)
In RptgenML.Root/cbkReport>locCallbackRunReport (line 234)
In timer/timercb (line 30)
In timercb (line 13)
I don't know where to look to fix this warning.
I'm using matlab r2015aSP1

回答(1 个)

Paul Kinnucan
Paul Kinnucan 2016-5-12
This warning occurs because you selected "Maintain compatibility with previous versions of Word" when you saved your template. As a result, Word saved the section of your template that contained rgTitle in multiple versions to preserve compatibility with previous releases. This means that your program will fill each instance of rgTitle. This is a good thing because it ensures that your report will be backward compatible with previous versions of Word. Why the warning then? To alert you that this is happening so that you will not be puzzled that your program fills rgTitle more than once. On the other hand, if you are not concerned about backward compatibility, you can avoid the warning by unchecking the compatibility option when you save your document.

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by