Progress® Telerik® Reporting R3 2017

XmlReportSource Class

Represents a report source that contains the XML markup of a report document.

Inheritance Hierarchy

Namespace:  Telerik.Reporting
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

public class XmlReportSource : ReportSource

The XmlReportSource type exposes the following members.

Constructors

  NameDescription
Public methodXmlReportSource
Creates a new instance of the XmlReportSource class.
Top

Properties

  NameDescription
Public propertyParameters
Determines the parameter values that are passed to the IReportDocument object when its instance is initialized.
(Inherited from ReportSource.)
Public propertyXml
Gets or sets the XML markup of a IReportDocument.
Top

Methods

Explicit Interface Implementations

Examples

The following example shows how to create a XmlReportSource:
var xmlReportSource = new Telerik.Reporting.XmlReportSource();

// Specifying the XML markup of the report
xmlReportSource.Xml = @"<?xml version='1.0' encoding='utf-8'?>
                        <Report Width='3in' Name='userReport1' xmlns='http://schemas.telerik.com/reporting/2012/2'>
                          <Items>
                            <DetailSection Height='1in' Name='detailSection1'>
                              <Items>
                                <TextBox Value='=Parameters.OrderNumber.Value' Size='2in, 0.4in' Location='0.5in, 0.3in' Name='textBox1' />
                              </Items>
                            </DetailSection>
                          </Items>
                          <PageSettings>
                            <PageSettings PaperKind='Letter' Landscape='False'>
                              <Margins>
                                <MarginsU Left='1in' Right='1in' Top='1in' Bottom='1in' />
                              </Margins>
                            </PageSettings>
                          </PageSettings>
                          <ReportParameters>
                            <ReportParameter Name='OrderNumber'>
                              <AvailableValues />
                            </ReportParameter>
                          </ReportParameters>
                        </Report>";

// Adding the initial parameter values
xmlReportSource.Parameters.Add(new Telerik.Reporting.Parameter("OrderNumber", "SO43659"));

See Also