Hi,
Is there a way in a report to reverse a string? I have a string value that represents a date, so 020812 = 2nd Aug 2012
This value is printed as is on one part of the report - 020812
But it is also used as part of a barcode, where it is reversed, so it needs to display as 120802
Is there a way to do this internally in stimulsoft designer?
Thanks,
Jon.
Reverse a String
Reverse a String
Hello.
If your data in date format then you can use next expression
Thank you.
If you have a string then please write next expressionInk wrote:Is there a way in a report to reverse a string? I have a string value that represents a date, so 020812 = 2nd Aug 2012
This value is printed as is on one part of the report - 020812
But it is also used as part of a barcode, where it is reversed, so it needs to display as 120802
Is there a way to do this internally in stimulsoft designer?
Code: Select all
{YourDataSource.YourTextField.Substring(4, 2) + YourDataSource.YourTextField.Substring(2, 2) + YourDataSource.YourTextField.Substring(0, 2)}
Code: Select all
{YourDataSource.YourDateField.ToString("yyMMdd")}
Reverse a String
Thanks! First method worked fine.
Reverse a String
Hello,
Perfect! As always we are glad to help you!
Perfect! As always we are glad to help you!