• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

TQRExpr component (Delphi4)

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'.
  • 2
1 Solution
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

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:='/').
Or You can use oNNeededData event to print a date like You wish
dealerAuthor Commented:
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.
Points ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now