作成日: 2026/04/07 最終更新日: 2026/04/09
文書種別
不具合
状況
回避方法あり
詳細
WPFビューワのLoadDocument(SectionDocument)メソッドで、セクションドキュメントをWPFビューワ上に読み込むと、プレビューしたレポートの上部に、以下のバナーが表示されます。
| このレポートは、ActiveReports for .NETトライアル版で作成されました。🄫 MESCIUS inc. All rights reserved. |
本事象は、以下のようなコードで発生します。
SectionReport report = new();
report.LoadLayout(XmlReader.Create(@"c:\Report1.rpx"));
report.Run();
viewer.LoadDocument(report.Document);
以下のようなコードでは発生しません。
viewer.LoadDocument(@"c:\Report1.rpx");
SectionReport report = new();
report.LoadLayout(XmlReader.Create(@"c:\Report1.rpx"));
viewer.LoadDocument(report);
回避方法
レポートをRDF形式で保存し、それをWPFビューワ上に読み込むことで、回避が可能です。
SectionReport report = new();
report.LoadLayout(XmlReader.Create(@"c:\Report1.rpx"));
report.Run();
using (System.IO.MemoryStream strm = new())
{
report.Document.Save(strm);
strm.Position = 0;
viewer.Document.Load(strm);
}