Home Subreports
New Blog Posts: Merging Reports - Part 1 and Part 2

labels and images not changing when using templetes.

edited July 2004 in Subreports
Hi! I'm using a the LoadfromFile procedure to assign a Template to a
report.
In the template I have a label and a image that change dinamically as I
print the
report (the label is for diferent copys description : 'File', 'Copy1' etc)
and the image
is for a BarCode that is being generated apart.
So I use the before print event and assign label.caption := 'whatever'
and image.picture.loadfromfile('filename');

I debug the code and the event is being called and the code is being done
but something isn't working because when I see the report: there is no
diference on
the label and image!!

I have also a variable on the templete and have code on the oncalc event,
and the code here works fine and I can see the results on the report, so
I change the code on label.onprint for a variable.oncalc (as string) and
it's works
but I dont have any idea for how to make it happen on the image.

Why is this happening? The events and the code just seem to work fine.
Also works if a print the report directly without make the LoadfromFile, but
I need to make it that way.




Hi I'm doing a master report on wich I display four other diferentes
reports, with
diferent layout and page totals each; I just need to print two of them at a
time,
so I'm using 2 section subreports inside the ' Master' report. There is not
pipeline linked to the
Master report.
At runtime I assign the templete for the section subreports (using the
LoadfromFile procedure),
and is working fine, the only problem is that one blank page is always
there, sometimes at the begining
sometimes at the end (it's depend on wich band I put the subreports) but is
always there.
I already try the nodata behavior property but it didn't work.
so.. could please someone help me? or how should I do this 'report of
reports'?

Comments

This discussion has been closed.