How to format text in expression editor?

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

How to format text in expression editor?

Post by fuhrj »

I know that I can right-click a text box and select a text format. However, I notice that if the expression contains two parameters, then the formatting is ignored.

For example, if the expression for a text box contains:

Run Date: {Table1.Parameters["@startDate"].ParameterValue} - {Table1.Parameters["@endDate"].ParameterValue}

and if I set the format to Date, it still shows 12/11/2008 12:23 pm

If each are in the their own text box, formatting works. But I want it in a continuous string for looks purposes.

Can you format in the expression for date?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to format text in expression editor?

Post by Edward »

Yes, it is possible.

Please do the following trick as in the attached sample report.

Thank you.
Attachments
108.ApplyFormatManually.zip
(1.46 KiB) Downloaded 202 times
Post Reply