How can I insert line break in non HTML text field?

Stimulsoft Reports.Flex discussion
Locked
angelFX
Posts: 4
Joined: Mon Oct 17, 2011 9:23 am

How can I insert line break in non HTML text field?

Post by angelFX »

How can I insert line break in non HTML text field?
According to this post http://forum.stimulsoft.com/Default.aspx?g=posts&t=3858 I must use

Code: Select all

{"Sample \n string"}
I tried with ‘\n’ , ‘\r\n’. But no success.
It seems that isn’t work in Stimulsoft Reports.Fx for Flex.

Thanks in advance for you answer.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How can I insert line break in non HTML text field?

Post by HighAley »

Hello.

We've reproduced the issue. We need time to fix it.

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How can I insert line break in non HTML text field?

Post by Vladimir »

Hello,

Once again, we cross-checked this issue - the problem is not found. If the text comes as data from a datacolumn, for newline enough the \n combination. If text is entered in the designer's expression editor, you will need to put a normal line break (return key).

Thank you.
angelFX
Posts: 4
Joined: Mon Oct 17, 2011 9:23 am

How can I insert line break in non HTML text field?

Post by angelFX »

Hi Vladimir,

You are absolutely right. But I didn’t explain the whole problem.

When we put normal line break (Return key break) it looks fine in Report viewer.

But the Return key break is not visible in Word/RTF export.

The only way to put line break in non HTML text field, and this line break to be visible in Word/RTF export is to use ‘\n’ instead of Return key break.

But when ‘\n’ is hard coded in text field’s expression it doesn’t reproduce a line break even in Report viewer.

So, the problem still exists. We need a line break in non HTML text field visible in Word/RTF export.

Temporary we found a walkaround for the problem. When we send ‘\n’ to the text field, as a variable from Flex App it is readable for Report viewer and Word/RTF export.

It seems that the Word/RTF export also ignores:
- tabulation
- more than one space
- new page (page break)

By the way: any result for replacing HTML text field export to image with your own HTML parser? (http://forum.stimulsoft.com/Default.aspx?g=posts&t=3984)

Thanks in advance for you answers.

Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How can I insert line break in non HTML text field?

Post by Vladimir »

Hello,

The error with exports is fixed, the update will be available in the todays prerelease build.

Thank you.
angelFX
Posts: 4
Joined: Mon Oct 17, 2011 9:23 am

How can I insert line break in non HTML text field?

Post by angelFX »

Hi Vladimir,

Thanks for quick reaction.

The Return break is already correctly visible in Word/RTF Export!!! Thanks again.

But we still need more than one space in Word/RTF Export.

Also we need correct export in Word/RTF of multipage reports. Now the content of report’s new page doesn’t start on new page in exported Word/RTF file. It starts just after the content on previous page.

Thanks in advance.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How can I insert line break in non HTML text field?

Post by HighAley »

Hello.

Sorry for the delay with response. We need some additional time to prepare the answer for you.

Than you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How can I insert line break in non HTML text field?

Post by HighAley »

Hello.
angelFX wrote:But we still need more than one space in Word/RTF Export.
The issue is solved. The fix will be available in our release in late March.
angelFX wrote:Also we need correct export in Word/RTF of multipage reports.
Now the content of reports new page doesnt start on new page in exported Word/RTF file. It starts just after the content on previous page.
When exporting to Word and Excel entire report is transformed into one large continuous table,
and empty space at bottom of the page is removed. If you want to export report without changes, you can choose one of the solutions:
1. Uncheck the RemoveEmptySpaceAtBottom option in the export settings menu. Will be added in our next release.
2. Use PageFooter, in this case PageFooter must meet at least one of the conditions:
- must have border at least on one side;
- must contain text;
- background color should be not transparent (for example white).

Thank you.
Locked