Solved

TQRExpr component (Delphi4)

Posted on 1998-09-24
4
229 Views
Last Modified: 2010-04-06
I am developing reports using TQRExpr to print a date field from a Paradox7 table. The date format that I require must be 'yyyy/mm/dd'.
0
Comment
Question by:dealer
  • 2
4 Comments
 

Expert Comment

by:huizhang
ID: 1340735
Hi dealer,

TQRExpr has very limited functions, and can only deal with simple
expression. I do not think you can present your date though that
TQRExpr.

I will add a calculated TDataTime field for my table or query, all the calculation can be done there. The field add can has a
"DisplayFormat" property which equals "yyyy/mm/dd". After that I
can use a TQRDBText to present it. Remember to set the "DateSeparator" system variable to "/"(DateSeparator:='/').
0
 
LVL 2

Expert Comment

by:Waldek
ID: 1340736
Or You can use oNNeededData event to print a date like You wish
0
 

Author Comment

by:dealer
ID: 1340737
Waldek,
I used the OnNeededDataEvent to set the display format for both a TQRExpr to print a date and a currency value and it worked fine. Thanks for the help.
0
 
LVL 2

Accepted Solution

by:
Waldek earned 50 total points
ID: 1340738
Points ?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

18 Experts available now in Live!

Get 1:1 Help Now