How to call form designed in report???

Stimulsoft Reports.NET discussion
Post Reply
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

How to call form designed in report???

Post 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
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

How to call form designed in report???

Post 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);
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

How to call form designed in report???

Post by abhi0410 »

what if the data is from DATATABLE?????.....
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

How to call form designed in report???

Post by Brendan »

You use the same method call

Code: Select all

report.RegData(myDataTable);

or

report.RegData("Customers", myCustomerTable);
Post Reply