Delphi - Quick Reports

Posted on 2006-05-18
Last Modified: 2010-05-18

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).

Question by:Sebastion
    LVL 17

    Expert Comment

    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

    Accepted Solution

    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.


    Author Comment

    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.
    LVL 17

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    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…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now