?
Solved

TQRExpr component (Delphi4)

Posted on 1998-09-24
4
Medium Priority
?
239 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 150 total points
ID: 1340738
Points ?
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

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…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 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