Printing a date on ordinal format and on superscript

Stimulsoft Reports.NET discussion
Post Reply
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Printing a date on ordinal format and on superscript

Post by ptabkra »

Hi,

Currently, we are using our defined function to display date on ordinal format e.g. 21st January 2009 or 25th January 2009 (this works OK).

But, is there a Stimulsoft-defined format specifier for this?

Next, to display the date and ordinal parts -st, -nd, -rd, -th on superscript, I used a Rich Text Field-Editor.

But, is there a way to display the date using a Text field and setup to superscipt text or parts of texts?

Thanks!

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Printing a date on ordinal format and on superscript

Post by Edward »

Hi,
ptabkra wrote:Currently, we are using our defined function to display date on ordinal format e.g. 21st January 2009 or 25th January 2009 (this works OK).

But, is there a Stimulsoft-defined format specifier for this?
Sorry, we support only formats which are available in .Net Framework. You can use predefined formats or add your own formatting string. In the context menu of the StiText component just select "Text Format" menu item.
Next, to display the date and ordinal parts -st, -nd, -rd, -th on superscript, I used a Rich Text Field-Editor.

But, is there a way to display the date using a Text field and setup to superscipt text or parts of texts?
In the latest prerelease build you can use HTML tags for this. There is a list of available HTML tags:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=1792

AllowHTMLTags property of the text component must be set in 'true'.

Thank you.
ptabkra
Posts: 27
Joined: Tue Oct 16, 2007 10:33 pm

Printing a date on ordinal format and on superscript

Post by ptabkra »

Hi,

Okay, we can just use our own function for the ordinal display.

Superscript display: Good job.
The HTML tag is working OK! :biggrin:

Cheers
Post Reply