QReports ...

Posted on 1998-11-08
Last Modified: 2010-04-04
I want to print the contents of a table in Qreports, however I want to print certain record fields as "blank" depending on the value of other fields in the same record.

Anyone tell me (perhaps in general terms) how I might go about this.

Question by:cavalry
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
LVL 27

Expert Comment

ID: 1346151
hi cavalry,

use the event onprint of the field you want to manipulate. Maybe you must use a QRLabel-Component to do this.


Expert Comment

ID: 1346152
In the BeforePrint Event of your Detail band put somthing like this.

if MyTable.FieldByName('MyConditionField').As(some var type) = SomeValue then
  QRLabel1.Caption := 'Blank'
  QRLabel.Caption := MyTable.FieldByName('MyDataField').AsString


Accepted Solution

glabax earned 10 total points
ID: 1346153
You can put the field in the white color

if condition then

in the beforePrint event of your detail band.

Of course if you use a color printer with black paper, it doesn't work !!

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month7 days, 18 hours left to enroll

617 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