Page 1 of 1

Components should be linked

Posted: Tue Jun 08, 2021 12:27 pm
by ufessel
Hello,

how can I set the <linked>-Option to all Componets in a quick way ?

Sometimes, when I open a report in the designer, some components are shifted a lot.
When I reopend it, all componets find her correct position.

I work on a Windows10/64-bit with i7, 2 kernel, 4 logical processors,
stimulsoft-version: 2020.5.2

Thanks and regards
Uwe

Re: Components should be linked

Posted: Fri Jun 11, 2021 7:29 am
by Lech Kulikowski
Hello,

You can use the following code:

Code: Select all

foreach(var reportComponent in report.GetComponents())
{
    ((StiComponent)reportComponent).Linked = true;
}
Thank you.

Re: Components should be linked

Posted: Mon Jun 14, 2021 12:51 pm
by ufessel
Hello,

and how can I integrate it in the DesignerSaveDialog ?

string file = "abc.mrt";
StiReport report = new Stimulsoft.Report.StiRepüort();
report.Load(file);
report.Design();

Thanks
Uwe

Re: Components should be linked

Posted: Wed Jun 16, 2021 8:39 pm
by Lech Kulikowski
Hello,

You can use the following code:

Code: Select all

string file = "abc.mrt";
StiReport report = new Stimulsoft.Report.StiRepüort();
report.Load(file);
foreach(var reportComponent in report.GetComponents())
{
    ((StiComponent)reportComponent).Linked = true;
}
report.Design();
Thank you.