Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Memo fields in QuickReport

Posted on 1997-10-21
6
Medium Priority
?
1,459 Views
Last Modified: 2013-11-22
G'day,

The QuickReport Help files say that when you pass a Memo field to a qrdbText component, it stretches the detail band to accomodate all the lines of the memo.

I say this: Crap. It does not.

My problem is that the qrdbtext component will only show the first line of the memo when its autosize property is false, and only shows the first letter when autosize is set to true.

What in QuickReport would cause this if it is not supposed to happen? Has anyone had this problem before?

BadBart.
0
Comment
Question by:BadBart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:fsanchez
ID: 1348549
You need to set the AutoStretch property of the QRDBText to True (not the AutoSize). It is working for me (I am currently using the 2.0i version). If you are using an older version may be it won't work. You can download it from http://www.qusoft.no

Good luck
0
 
LVL 3

Expert Comment

by:Pegasus100397
ID: 1348550
BadBart,

I had this same problem awhile back (in Delphi 1.0). If your qrdbText component is truncating the # of lines try this in the BeforePrint() section of the band:

(First determine the # of lines in the memo, use a temp memo object or something to get a count, in this example Memo1)

qrdbText1.Height := Memo1.Lines * 12 {If each line is 12 units high}
If qrdbText.Height < 12 then qrdbText.height := 12 {if no lines,then default to "normal" height. }

This should take care of the growing/shrinking height problem of the band, just make sure the length of the field is enough to accomidate the longest line.

Hope this helps & good luck with your project :)
Pegasus



0
 

Author Comment

by:BadBart
ID: 1348551
When I change the height of the QRDBText component, it still does not display more than one line of the Memo. I tried setting the QRDBText height and the Band height at 100 during design time and it still won't diaplay the rest of the Memo.

Could it be something else?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:BadBart
ID: 1348552
Sorry, but I think it's something else. Something to do with the data source it comes from, perhaps?

0
 

Author Comment

by:BadBart
ID: 1348553
I'm using QuickReport version 1, Delphi version 1, and paradox tables. I have noticed that the QRDBText fields used to display the entire memo in every QRDBText field there is in my project. But now they don't in any of them.

Is there some setting that makes paradox tables incompatible
with QuickReport, or something like that? What is going wrong?
0
 
LVL 1

Accepted Solution

by:
Zonnald earned 680 total points
ID: 1348554
I don't know about QRDBText fields but I find the QRMemo field works just fine - by setting the QRMemo field during the detail bands BeforePrint method as such :

QRMemo1.Lines.Clear;
QRMemo1.Lines.Add(tblBOFQ.fieldbyName('Description').AsString);
QRMemo1.Wordwrap := True;

Did this in D1 /QR1 and still works in D3/QR2.XX
Where the table field is a MEMO, everything works great.
I don't use autostretch or autosize because they may mess up the band and if the user needs it larger then I can easily update the report.

Is there any reason that you are using the QRDBText field (other than the obvious datalink that it gives you?).

Any how try this - good luck

Zonnald


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

597 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