Page 1 of 1

Printing a date on ordinal format and on superscript

Posted: Wed Jan 21, 2009 11:39 pm
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!


Printing a date on ordinal format and on superscript

Posted: Thu Jan 22, 2009 9:32 am
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.

Printing a date on ordinal format and on superscript

Posted: Fri Jan 23, 2009 12:07 am
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