Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Herve Demezil
Herve Demezil 2016 年 2 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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