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
Solved

QReports ...

Posted on 1998-11-08
3
324 Views
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.

Thanks.
0
Comment
Question by:cavalry
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
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.

meikl
0
 
LVL 1

Expert Comment

by:Greedy
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'
else
  QRLabel.Caption := MyTable.FieldByName('MyDataField').AsString


0
 

Accepted Solution

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

if condition then
  name_object.font.color:=clWhite
else
  name_object.font.color:=clBlack;

in the beforePrint event of your detail band.

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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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