This is a migrated thread and some comments may be shown as answers.

Report content alignment

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yuriy
Top achievements
Rank 1
Yuriy asked on 19 Jul 2017, 11:27 AM
Hi,
I'm trying to put string 
"     ===CARD PAYMENT===\r\n\r\nMERCHANT               0000001\r\nTERMINAL               0000001\r\nTIME         18 Jul 2017 18:31\r\nAID             A0000000031010\r\nAPP LABEL      CREDITO DE VISA\r\nCARD          ************0119\r\nPAN SEQ Number              01\r\nENTRY                 VISA ICC\r\nAUTHORISATION           025976\r\nREFERENCE               004779\r\nPURCHASE               GBP2.95\r\nTOTAL                  GBP2.95\r\n                              \r\n"
as a Value of TextBox on Telerik Report. Each line has 30 characters.
The value is displayed on report like `Telerik report.png` but I'm expecting the layout should be like in Visual Studio view (`Visual Studio view.png`).
Looks like the space character uses less width.

Is here any workaround to display it like on `Visual Studio view.png`?

Thank you,
Yuriy.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 19 Jul 2017, 11:39 AM
Hi Yuriy,

System characters like tab, new row are interpreted depending on the media - Telerik Reporting renders documents with native objects for the selected format (PDF, Image, XLS, etc.).
Spaces will be also measured depending on the media and the font settings.

If you need to keep data in two columns, my recommendation is to load it in a data structure with two fields (columns/properties). Then create a Table item and bind it to that data object. You will be able to set the text alignment and other settings for each column individually.

Regards,
Stef
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Yuriy
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or