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

Stimulsoft Reports.NET discussion
Post Reply
Peter Illes
Posts: 18
Joined: Tue Jun 26, 2007 8:04 am
Location: Hungary

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

Post 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
Peter Illes
Posts: 18
Joined: Tue Jun 26, 2007 8:04 am
Location: Hungary

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

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

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

Post 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.
Peter Illes
Posts: 18
Joined: Tue Jun 26, 2007 8:04 am
Location: Hungary

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

Post by Peter Illes »

Edward,

I have just sent a sample app.

Thanks,
Peter
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

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

Post by Vital »

Problem fixed. Thank you for your bug report. Patch will be available in build from 27 June.
Peter Illes
Posts: 18
Joined: Tue Jun 26, 2007 8:04 am
Location: Hungary

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

Post 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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

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

Post by Vital »

Add following code before report.Compile():

Code: Select all

report.ResetRenderedState();
Thank you.
Post Reply