バージョン 24.2 (最新)

レポートを公開するときの PageOrientation の設定

PDF または XPS ドキュメントを公開するとき、ページの Orientation は、PageOrientation プロパティで設定できます。Report.Publish() メソッドを使用するとき、Report に追加する各 Section の ISection() に、PageOrientation を直接設定する必要があります。

C# の場合:

Infragistics.Documents.Reports.Report.Report r = new Report();

//Adding a section to the Report
Infragistics.Documents.Reports.Report.Section.ISection s = r.AddSection();

 s.PageOrientation = PageOrientation.Portrait;

 //Adding Text to the Section
 Infragistics.Documents.Reports.Report.Text.IText t = s.AddText();

 t.AddContent(”Test Text”);


 string theFile = @”c:test.pdf”;

 r.Publish(theFile, FileFormat.PDF);

オンラインで表示: GitHub