Solved

QReports ...

Posted on 1998-11-08
3
321 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

770 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