Why Dialogbox "Select data source"
Hi there,
due to the missing documentation some simple questions:
1. What is the idea behind the dialog "Select data source" that pops up when you open the report in design mode? Actually all fields are empty.
2. What ist the purpose of the dialog "Choose Report Data" that is shown when one selects action -> choose report data? Again this dialog is empty.
Many thanks ahead for answering!
cdk2008
due to the missing documentation some simple questions:
1. What is the idea behind the dialog "Select data source" that pops up when you open the report in design mode? Actually all fields are empty.
2. What ist the purpose of the dialog "Choose Report Data" that is shown when one selects action -> choose report data? Again this dialog is empty.
Many thanks ahead for answering!
cdk2008
Comments
The documentation is here:
http://www.fast-report.com/en/forum/?p=/discussion/4901
The "Select Data Source" dialog allows you to select a data source defined in your project. It seems you don't have it.
Here is a quick how-to:
- create a new Windows Forms application;
- add a dataset into it ("Data|Add New Data Source..." menu item);
- switch to the Form designer;
- add the "DataSet" component on a form and connect it to the typed dataset
that you have created;
- put the "Report" component on a form;
- right-click it (or click on a smart tag button) and select the
"Design Report..." item;
- choose the data source to use in a report;
- create your report;
- close the report designer;
- add a "Button" control on your form;
- double-click it and write the following code in the button_Click event
handler:
report1.Show();
- save the project and run it.
Hi Alex,
it sounds simple but it doesn't work!
In Report Designer the preview shows the data from the dataset correctly. But if the designer is closed and the report
should be shown by the code "this.report1.Show();" only the band "headline" contains the name of the columns.
Band "data" is empty.
What goes wrong in my code?
With best regards
Claus
I forgot to mention that you have to fill the dataset before running a report. This must be done before the "report.Show()" call. In design-time, FR does this automatically, but in run-time you must take care about it.