 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Michael Guest
|
Posted: Tue Apr 13, 2004 12:55 pm Post subject: QuickReport: setting band height - stack overflow |
|
|
I'm using QuickReport (standard, installed with C++-Builder 6).
I have a standard report with a detail band. My program allows
to set font and fontsize for the report. Due to the different
height of the used font, the height of the detailband has to
reset according the choosen fontsize.
The problem is the following:
Some combinations of font, fontsize and bandheight produce
a stack overflow during the preview. Other combinations work fine.
Any suggestion?
Thanks
|
|
| Back to top |
|
 |
David B. Guest
|
Posted: Thu Apr 22, 2004 3:36 pm Post subject: Re: QuickReport: setting band height - stack overflow |
|
|
I would look at the order in which these are assigned - I would suggest
setting the bandheight first and immediately after the creation of the
report. Try something like this:
QRMyReport := TQRMyReport.Create(Application);
QRMyReport.DetailBand1.Height := { calculated height based on font and
size }
{ set font and size }
{ open data set }
QRMyReport.ShowModal;
QRMyReport.Release;
Good luck and let me know how you make out.
David B.
"Michael" <michael (AT) leipzigerallerlei (DOT) de> wrote
| Quote: |
I'm using QuickReport (standard, installed with C++-Builder 6).
I have a standard report with a detail band. My program allows
to set font and fontsize for the report. Due to the different
height of the used font, the height of the detailband has to
reset according the choosen fontsize.
The problem is the following:
Some combinations of font, fontsize and bandheight produce
a stack overflow during the preview. Other combinations work fine.
Any suggestion?
Thanks
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|