Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope
Posted: Mon Jun 30, 2008 8:13 am
Hello, my name is Sorin Miroiu.
I'm trying out the Stimulsoft Reports.Net, but i have some problems with it.
In the Report Designer i'm making a connection to the SQL Server, tested ok, worked ok. Now i'm trying to promp the user for user/password to connect to the database by enabling the option "Prompt User Name and Password" in the Edit Sql Connection window. Everything ok till now.
When i'm clicking the Preview button i've added in my windows form, the popup for the user and password appears, i write in my login credentials, and when i click ok, i get the followin error : Not allowed to change the 'ConnectionString' property. The connection's current state is open.
Here's the code for the click event
stiReport.Compile();
stiReport.CompiledReport.DataSources["CustomerOrder2"].Parameters["@ClientId"].ParameterValue =
dataGridView.CurrentRow.Cells[0].Value;
stiReport.Render();
stiReport.Show();
Any thoughts ? Thank you !
I'm trying out the Stimulsoft Reports.Net, but i have some problems with it.
In the Report Designer i'm making a connection to the SQL Server, tested ok, worked ok. Now i'm trying to promp the user for user/password to connect to the database by enabling the option "Prompt User Name and Password" in the Edit Sql Connection window. Everything ok till now.
When i'm clicking the Preview button i've added in my windows form, the popup for the user and password appears, i write in my login credentials, and when i click ok, i get the followin error : Not allowed to change the 'ConnectionString' property. The connection's current state is open.
Here's the code for the click event
stiReport.Compile();
stiReport.CompiledReport.DataSources["CustomerOrder2"].Parameters["@ClientId"].ParameterValue =
dataGridView.CurrentRow.Cells[0].Value;
stiReport.Render();
stiReport.Show();
Any thoughts ? Thank you !