Locked variables

Stimulsoft Reports.NET discussion
dikan
Posts: 165
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Locked variables

Post by dikan »

My variables on report are locked. I could not access them in any way.

What should I do to get proper access?

DIkan
dikan
Posts: 165
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Locked variables

Post by dikan »

If you try to edit report with 2015.1 and it was created with 2015.3 version than variables are locked.

Best regards,

Dikan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Locked variables

Post by Alex K. »

Hello,

The issue was in one of last builds but in the new release 2015.3 was fixed. But variables created in this build need change. You can manually edit mrt file in notepad or use the tool in the attachment.
Also you can use the following code:

Code: Select all

foreach (StiVariable variable in report.Dictionary.Variables)
{
variable.Inherited = false;
}
Thank you.
Attachments
LockVariableFix.zip
(3.22 MiB) Downloaded 534 times
OC-Thorsten
Posts: 31
Joined: Thu Jul 16, 2015 12:22 pm

Re: Locked variables

Post by OC-Thorsten »

Hi,

in the tool is a little bug.
I'm missing the save method.

Code: Select all

report.Save(tbStimulReportFile.Text);
MessageBox.Show("Unlock complete!");
Thank you,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Locked variables

Post by Alex K. »

Hello,

Thank you for the information.

Please let us know if you need any adittional help.
Thank you.
tapha28
Posts: 1
Joined: Thu Feb 01, 2018 7:23 am

Re: Locked variables

Post by tapha28 »

Hi Mr.Alex K,

I'm using 2014 version and I used tool "LockVariableFix" but variables still not unlock.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Locked variables

Post by Alex K. »

Hello,

Please send us your report template for analysis.

Thank you.
ianwelsh
Posts: 19
Joined: Mon Sep 25, 2017 1:54 pm

Re: Locked variables

Post by ianwelsh »

You said you can manually edit the mrt - can you give more details on what to edit?

Thanks
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Locked variables

Post by Lech Kulikowski »

Hello,

You should set the last parameter to false in the mrt file.

Thank you.
Attachments
Screenshot 2020-09-30 233853.jpg
Screenshot 2020-09-30 233853.jpg (279.63 KiB) Viewed 2765 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: Locked variables

Post by dmasterplan »

Hi,

I have edited the mrt file in an editor but the variables are still locked.

What should be done next?

Great Thanks
Attachments
locked variables.png
locked variables.png (270.28 KiB) Viewed 1165 times
Post Reply