HI,
I have a project with 2 forms:
- form1 opens a connection with a DB and fill a dataset
- form2 has a report viewer and istantiate a report object with a connection to the dataset in form1.
With the report designer i have created the template report. It makes the connection to the dataset and retrieves all the tables and fields in it.
But, when i run the program and show the report viewer, it asks to me to fill a logon dialog for the tables in the dataset.
I have no logon info to pass to the report, and I dont want to do logon....
In another project, more complex, it works fine... the dataset is a little bit different, but connects to the same DB.
Why does this happens?
I have a project with 2 forms:
- form1 opens a connection with a DB and fill a dataset
- form2 has a report viewer and istantiate a report object with a connection to the dataset in form1.
With the report designer i have created the template report. It makes the connection to the dataset and retrieves all the tables and fields in it.
But, when i run the program and show the report viewer, it asks to me to fill a logon dialog for the tables in the dataset.
I have no logon info to pass to the report, and I dont want to do logon....
In another project, more complex, it works fine... the dataset is a little bit different, but connects to the same DB.
Why does this happens?