Version

ReportSettings Property

Gets the object that contains the settings for the entire Report (read-only)
Syntax
'Declaration
 
Public Overrides ReadOnly Property ReportSettings As ReportSettings
public override ReportSettings ReportSettings {get;}
Example
The following example shows how to interact with report’s settings. The example sets XamDataGrid1 to be printed on separated pages if it doesn’t fit on page size, and set the order of pagination to be first left than down.

Private Sub SetReportSettings()

    Dim reportObj As New Report()

    ' set print order. it can be first left than down (horizontal) or first(down than left(vertical)
    reportObj.ReportSettings.PagePrintOrder = PagePrintOrder.Horizontal
    ' set scale mode
    reportObj.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Mosaic
    
    Dim section As New EmbeddedVisualReportSection(XamDataGrid1)
    reportObj.Sections.Add(section)
    
    progressInfo.Report = reportObj
    reportObj.Print(False)
End Sub
private void SetReportSettings()
{
	Report reportObj = new Report();

	// set print order. it can be first left than down (horizontal) or first(down than left(vertical)
	reportObj.ReportSettings.PagePrintOrder = PagePrintOrder.Horizontal;
	// set scale mode
	reportObj.ReportSettings.HorizontalPaginationMode = HorizontalPaginationMode.Mosaic;

	EmbeddedVisualReportSection section = new EmbeddedVisualReportSection(XamDataGrid1);
	reportObj.Sections.Add(section);

	progressInfo.Report = reportObj;
	reportObj.Print(false);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also