Page 1 of 1

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 8:23 am
by Peter Illes
Hi Gents,

I'm trying to implement a bar code label printing app, in which I take a standard label (e.g. from Avery), and then during run-time manually set up band columns and the labels themselves within the column (to match the label layout on the Avery paper).

There are some problems, but the most important one is:

- If Column Direction is set to "Across Then Down", then each label will appear twice: once on its original location (before manual positioning) and once in the proper location. Location setting is done just after report creation, before any compilation/rendering. If "Down Then Across" is used, then the result is fine (but that mode is otherwise not suitable for my purposes). This seems to be a bug.

Other questions/issues:

- How do I get the report to take into consideration during rendering changed positions of controls? Problem: If I once did a Render() and then do change some component positions, and then do all kinds of things to try to get the engine to re-generate the layout on next Render(), without success. What I try is:

report.Dictionary.DataStore.Clear();
report.RegData(barCodeQueue);
report.NeedsCompiling = true;
report.IsRendered = false;
report.Compile();
report.Render();
report.Show();

Again, I try to render the same report multiple times, with some changes in layout and data. Data changes are reflected, but layout changes are not. One workaround is to create a new report each time and Load(), but that's not that elegant...

I know it is a bit unusual what I'd like to do, but the report engine is so much better than anything else, so I'd love to stick with it :-)

Thanks,
Peter

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 8:27 am
by Peter Illes
BTW all this with 2007.1

BTW #2: would be nice to know the schedule of BeforePrint, StartRender, etch events.

BTW #3: I found the video tutorials a good idea :-)

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 8:48 am
by Edward
Please send a sample application or a code which describes all your steps to Image for analysis.

The class reference is available here:
http://www.stimulsoft.com/Documentation ... erence.zip

Flashing tutorials:

http://www.stimulsoft.com/LiveDemos.aspx

Thank you.

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 9:27 am
by Peter Illes
Edward,

I have just sent a sample app.

Thanks,
Peter

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 3:16 pm
by Vital
Problem fixed. Thank you for your bug report. Patch will be available in build from 27 June.

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 3:42 pm
by Peter Illes
Gents,

Thanks for the superb-fast response! Looking forward to checking out the patch ASAP.

Could you possibly also help with my second question? Here it is again:

- How do I get the report to take into consideration during rendering changed positions of controls? Problem: If I once did a Render() and then do change some component positions, and then do all kinds of things to try to get the engine to re-generate the layout on next Render(), without success. What I try is:

report.Dictionary.DataStore.Clear();
report.RegData(barCodeQueue);
report.NeedsCompiling = true;
report.IsRendered = false;
report.Compile();
report.Render();
report.Show();

Again, I try to render the same report multiple times, with some changes in layout and data. Data changes are reflected, but layout changes are not. One workaround is to create a new report each time and Load(), but that's not that elegant...

Thanks,
Peter

Manual positioning with Band columns and "Across Then Down": rendering problems

Posted: Tue Jun 26, 2007 4:21 pm
by Vital
Add following code before report.Compile():

Code: Select all

report.ResetRenderedState();
Thank you.