TReport.CurrentColumn
Hi,
I upgraded to RB7.0 Enterprise an I got crazy prior to discover why some
end-user reports didn't work any more.
The fact was that in RB7.0 has been changed the property
TReport.CurrentColumn.
In the previous version, the value for this property was 1 for the first
column, 2 for the second, etc.
In RB7.0, the values are 0 for the first column, 1 for the second, etc.
Strange thing is that the value for the property Detail.count has not been
changed, it contains 1 for the first, 2 for the second, etc.
I expect that all property must have the same meaning, or 0 based or 1
based.
You can imagine what happens if you use these properties to decide what to
print and where to print it...
Regards
Antonio Budano
ALTAIR net S.r.l.
I upgraded to RB7.0 Enterprise an I got crazy prior to discover why some
end-user reports didn't work any more.
The fact was that in RB7.0 has been changed the property
TReport.CurrentColumn.
In the previous version, the value for this property was 1 for the first
column, 2 for the second, etc.
In RB7.0, the values are 0 for the first column, 1 for the second, etc.
Strange thing is that the value for the property Detail.count has not been
changed, it contains 1 for the first, 2 for the second, etc.
I expect that all property must have the same meaning, or 0 based or 1
based.
You can imagine what happens if you use these properties to decide what to
print and where to print it...
Regards
Antonio Budano
ALTAIR net S.r.l.
This discussion has been closed.
Comments
Engine.StartColumn routine is called, the CurrentColumn value is incremented
and then the band is told to generate. This property has a value of 1 when
I test using either the Report.OnStartColumn and the DetailBand.BeforePrint
events.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
OnPrint event of compnents(Memo, Label, Barcode, Variable).
It worked up to RB 6.03, it was 1 based, now I had to change the test to 0
based.
I did also a test, putting a label on the band ant in it's OnPrint event I
did Text := IntToStr(Report.CurrentColumn);
it prints 0 for the first column, 1 for the second and 2 for the third.
It is very strange.
I will send to support@digital-metaphors.com the report it is giving me the
problem.
Cheers,
Antonio