Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope

Stimulsoft Reports.NET discussion
Post Reply
mir
Posts: 8
Joined: Mon Jun 30, 2008 8:06 am
Location: Romania

Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope

Post by mir »

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 !
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope

Post by Edward »

Hello, Sorin Miroiu.

The issue is fixed.

Please download the next prerelease build when it is available (today or tomorrow).

Thank you.
mir
Posts: 8
Joined: Mon Jun 30, 2008 8:06 am
Location: Romania

Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope

Post by mir »

Is there an option or compatibility to print the Report i'm previewing in the StiPreviewReport control to a .Net “System.Drawing.Printing.PrintDocument” Class?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error : Not allowed to change the 'ConnectionString' property. The connection's current state is ope

Post by Vital »

Hello,

No sorry.

Thank you.
Post Reply