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
for analysis.