BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QuickReport: setting band height - stack overflow

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Michael
Guest





PostPosted: Tue Apr 13, 2004 12:55 pm    Post subject: QuickReport: setting band height - stack overflow Reply with 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
David B.
Guest





PostPosted: Thu Apr 22, 2004 3:36 pm    Post subject: Re: QuickReport: setting band height - stack overflow Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.