Page 1 of 1

How to call form designed in report???

Posted: Mon Oct 06, 2008 4:22 am
by abhi0410
hi,,,
i am new to stimul report.....i have desigend the form in the report and have used the controls provided in the report....
But can somebody tell me how to call the form from my application???

i am using C# and windows application........

Urgent help....


Thanks

How to call form designed in report???

Posted: Mon Oct 06, 2008 5:00 am
by Brendan
To Simply show the report you can do this

Code: Select all

StiReport report = new StiReport();
report.Load("C:\\PathToMyReport.mrt"); //Specify Path of Report you Designed/saved

report.Show();

If the Data for your report is not coming from an Sql Datasource then you can register your own data before called Show()

Code: Select all

report.RegData(myDataSet);

How to call form designed in report???

Posted: Mon Oct 06, 2008 5:34 am
by abhi0410
what if the data is from DATATABLE?????.....

How to call form designed in report???

Posted: Mon Oct 06, 2008 5:38 am
by Brendan
You use the same method call

Code: Select all

report.RegData(myDataTable);

or

report.RegData("Customers", myCustomerTable);