Sie sind auf Seite 1von 6

Contents

Table of Contents
Part I General

1 How Do
...................................................................................................................................
I Show Report in Viewer?
1
2 How Do
...................................................................................................................................
I Set Localization in Viewer?
1
3 How Do
...................................................................................................................................
I Design New Report?
2
4 How Do
...................................................................................................................................
I Design New Report with Custom Database?
2
5 How Do
...................................................................................................................................
I Load and Design Report?
3
6 How Do
...................................................................................................................................
I Load and Design Report with Custom Database?
3
7 How Do
...................................................................................................................................
I Save Report on Server?
4
8 How Do
...................................................................................................................................
I Set Localization in Designer?
4

Index

2012 Enter your company name

General

1.1

How Do I Show Report in Viewer?


Use the following code.
HTML:

<%@ Register Assembly="Stimulsoft.Report.Mobile" Namespace="Stimulsoft.


Report.Mobile" TagPrefix="cc1" %>

<html>
<head></head>
<body>

<cc1:StiMobileViewer ID="StiMobileViewer1" runat="server" />

</body>
</html>

C#:

protected void Page_Load(object sender, EventArgs e)


{
StiReport report = new StiReport();
report.Load("report.mrt");
StiMobileViewer1.Report = report;
}

1.2

How Do I Set Localization in Viewer?


Use the following code.
HTML:

<cc1:StiMobileViewer ID="StiMobileViewer1" GlobalizationFile="en.xml" runat

2012 Enter your company name

General

="server" />

1.3

How Do I Design New Report?


Use the following code.
HTML:
<%@ Register Assembly="Stimulsoft.Report.MobileDesign" Namespace
="Stimulsoft.Report.MobileDesign" TagPrefix="cc2" %>

<html>
<head></head>
<body>

<cc2:StiMobileDesigner ID="StiMobileDesigner1" runat="server" />

</body>
</html>

1.4

How Do I Design New Report with Custom Database?


Use the following code.
HTML:

<cc2:StiMobileDesigner ID="StiMobileDesigner1" runat="server"


OnCreateReport="StiMobileDesigner1_CreateReport" />

C#:

protected void StiMobileDesigner1_CreateReport(object sender,


StiMobileDesigner.StiCreateReportEventArgs e)
{
DataSet data = new DataSet();
data.ReadXmlSchema("Demo.xsd");
data.ReadXml("Demo.xml");
e.Report.RegData(data);

2012 Enter your company name

e.Report.Dictionary.Synchronize();
}

1.5

How Do I Load and Design Report?


Use the following code.
HTML:

<cc2:StiMobileDesigner ID="StiMobileDesigner1" runat="server />

C#:

protected void Page_Load(object sender, EventArgs e)


{
if (Page != null && !Page.IsPostBack)
{
StiReport report = new StiReport();
report.Load("report.mrt");
StiMobileDesigner1.Report = report;
}
}

1.6

How Do I Load and Design Report with Custom Database?


Use the following code.
HTML:

<cc2:StiMobileDesigner ID="StiMobileDesigner1" runat="server" OnLoadReport


="StiMobileDesigner1_LoadReport" />

C#:

2012 Enter your company name

General

protected void StiMobileDesigner1_LoadReport(object sender,


StiMobileDesigner.StiLoadReportEventArgs e)
{
DataSet data = new DataSet();
data.ReadXml("Demo.xml");
e.Report.RegData(data);
}

1.7

How Do I Save Report on Server?


Use the following code.
HTML:

<cc2:StiMobileDesigner ID="StiMobileDesigner1" runat="server" OnSaveReport


="StiMobileDesigner1_SaveReport" />

C#

protected void StiMobileDesigner1_SaveReport(object sender,


StiMobileDesigner.StiSaveReportEventArgs e)
{
StiReport report = e.Report;
report.Save("Report.mrt");
}

1.8

How Do I Set Localization in Designer?


Use the following code.
HTML:

<cc2:StiMobileDesigner ID="StiMobileDesigner1" GlobalizationFile="en.xml"


runat="server" />

2012 Enter your company name

2012 Enter your company name

Das könnte Ihnen auch gefallen