?
Solved

Delphi - Quick Reports

Posted on 2006-05-18
4
Medium Priority
?
400 Views
Last Modified: 2010-05-18
Hello,

I'm just wondering if anyone has any experience with Quick Reports for Delphi who might be able to help me out with this small problem.  Basically, even though the "WordWrap" property is set to True, the QRDBEdit objects are not wrapping.  Is it possible to somehow set a certain Width, but let the Height depend on how much text is in the database (Eg, one field might take 4 lines, while another only takes 1, and therefore the space for that data row should be reflected by this)?  

I've tried setting the Width through the object properties, but it doesn't seem to stay there (it keeps reverting back to 12.7mm//48).

Thanks
0
Comment
Question by:Sebastion
  • 2
4 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 16714588
You have to use a TQRMemo if you want dynamically sizing details
also, to keep a certain size on a TQRLabel or TQRDBText, set the "AutoSize" property to false
0
 

Accepted Solution

by:
Bryn Ball earned 500 total points
ID: 16723450
Hi Sebastion,

The was to do it with TDBText components is to set AutoSize to false, AutoStretch to True and WordWrap to True.

Your field should expand vertically down the page until all text has been printed.

:)
0
 

Author Comment

by:Sebastion
ID: 16738491
Sorry for the late reply.  About an hour after posting this question, I was on a flight up the coast and I didn't get back until this morning :/


TheRealLoki, if I were to use a TQRMemo, how do I bind data to it?  It doesn't appear to have a data source property.


bryndawcs, thanks, that's what I needed to know.
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 16738508
ah yes, you are right
I was thinking about using the OnNeedData event or BeforePrint event. sorry :-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question