Container and Panel control

Stimulsoft Reports.NET discussion
Post Reply
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Container and Panel control

Post by lcruiser »

Hi,

I have been trying out Engine_v2. I perform the following actions

Design new report and save:
1. Open an empty report in the designer with the default Engine_v1
2. Set version to Engine_v2, I notice that the Container control on the left hand side changes to Panel
3. Do some sample report design using Panel etc.
4. Exit designer and SavePackedReportToString()

When I open designer with LoadPackedReportFromString(), I notice that the version is still Engine_v2 but I get the Container control instead of Panel.

It seems that if I manually set Engine_v2 in the designer I get Panel, other time I get Container. When my report has both Container and Panel it still works without any problem.

What's the difference between Container and Panel, they are a bit confusing.

Thanks.



Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Container and Panel control

Post by Edward »

Hello.

There are new options for the 'Panel' component in 2008.2 prerelease version in Engine_V2 mode:

'Columns' property
'CanBreak' property

'Engine_V2' has made 'Container' name as obsolete.

As far as I understand the error you faced is connected with wrong initialization of the designer's interface after deserialization of the report from packedstring.

We will correct this error, thank you for the bug report. But in the latest prerelease I could not reproduce that error.

I tried the following code:

Code: Select all

StiReport report = new StiReport();
report.Load("report.mrt");
string myreport = report.SavePackedReportToString();
StiReport report2 = new StiReport();
report2.LoadPackedReportFromString(myreport);
report2.Design();
Could you please modify the code in the way the 'Container' component appears.

Thank you.
Post Reply