dinamic report

Stimulsoft Reports.WEB discussion
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

I sent a sample project which reproduces the issue, you can see it in the history of this question in the forum
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

protected void Button1_Click(object sender, EventArgs e)
{
    StiReport report = new StiReport();
    report.Load("e:\\1.mrt");
    DataSet ds = new DataSet("Demo");
    ds.ReadXml("e:\\Demo.xml");
    report.RegData(ds);
    report.Dictionary.Synchronize();
    StiWebViewerFx1.Report = report;
}

protected void StiWebViewerFx1_GetDataSet(object sender, Stimulsoft.Report.WebFx.StiWebViewerFx.StiGetDataSetEventArgs e)
{
    DataSet ds = new DataSet("Demo");
    ds.ReadXml("e:\\Demo.xml");
    e.DataSet = ds;
}
Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

it still non work
the problematic lines is:

Code: Select all

        report.RegData(ds);
        report.Dictionary.Synchronize();
I told you that before, why do you give me that code?
it take a lot of time, we need to do it for our customer !

tnk

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

You need add the following code in GetDataSet event of StiWebViewerFx component:

Code: Select all

DataSet ds = new DataSet("Demo");
ds.ReadXml("e:\\Demo.xml");
e.DataSet = ds;
If the issue is still present, please send us full Web project which reproduces the issue for analysis.

Thank you.
hana
Posts: 14
Joined: Tue Jun 14, 2011 3:17 am

dinamic report

Post by hana »

you right

it's work!!!:biggrin:

thank you!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

dinamic report

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.
Post Reply