Help wanted!!!
Hello All (Will33, where are you?!)
Right now I am working on a program using Report Sharp-Shooter by 9Rays.Net.
The purpose of the program is to create a monthly invoice of orders for one vendor
and calculate a balance of payment due. Right now, I have just started the program
so I am not very far along yet.
The sample project includes an Access database file (.mdb).
The program has one form with a button and two ComboBoxes on it. In one ComboBox is
a list of Vendors. In the other ComboBox is a list of dates, year and month.
(Right now, ComboBox2 is not being used in the program so please disregard this combo box).
In the Button1_Click event, I create a OleDbConnection object, a OleDbCommand object,
a OleDbDataAdapter object, and a DataSet. When the button is clicked, the vendor's name
selected in the ComboBox is passed into the OleDbCommand object's SQL text and then the
data relating to that vendor is retrieved from the database. The OleDbDataAdapter fills that
data into the DataSet1.
As I stated above, since the dataset is created at runtime, I do not know how to handle the
datasources for the ReportGenerator or for the DataBands.
I have tried several different approaches included the one used in the sample
program, "XmlDataSourceExample" but to no avail.
Can you give me some suggestions as to how I would approach this problem?
twnr33Posted Feb 15, 2005, 11:18 PM