WordWrap does not work on the jsp page(stiwebviewer)

Stimulsoft Reports.JAVA discussion
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

WordWrap does not work on the jsp page(stiwebviewer)

Post by Jia Sheng »

Hello,

We use Stimulsoft Reports.Java 2016.1 trial, It does not work when I set a text component's attribute WordWrap=True , It can work in designer But it does not work on the jsp page using stiwebviewer control.
Report design like :
QQ图片20160517161332.jpg
QQ图片20160517161332.jpg (98.05 KiB) Viewed 10504 times
It can work in java designer:
QQ图片20160517161357.png
QQ图片20160517161357.png (4.69 KiB) Viewed 10504 times
But it does not work on the jsp page using stiwebviewer control:
QQ图片20160517163006.png
QQ图片20160517163006.png (9.79 KiB) Viewed 10504 times
JSP Page:
QQ图片20160517163419.png
QQ图片20160517163419.png (57.23 KiB) Viewed 10503 times
demo report:
Report.mrt
(2.74 KiB) Downloaded 252 times
Thanks !
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Vadim »

Hello.
It use browsers WordWrap.
You can set option StiOptions.Export.Html.setUseStrictTableCellSize(true); but it can take affect to export view
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Jia Sheng »

Ok

Thank you
Vadim wrote:Hello.
It use browsers WordWrap.
You can set option StiOptions.Export.Html.setUseStrictTableCellSize(true); but it can take affect to export view
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Jia Sheng »

Hello.

Now we have another question about WordWrap in the DataBand Component like :
designerdemo.png
designerdemo.png (124.86 KiB) Viewed 10442 times
Thanks!
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Vadim »

Hello.
Default value of StiOptions.Export.Html.setUseStrictTableCellSize is false, so you can see in java.stimulsoft.com
With StiOptions.Export.Html.setUseStrictTableCellSize(true); you can see next result:
Attachments
ww3.PNG
ww3.PNG (49.41 KiB) Viewed 10436 times
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Jia Sheng »

Hello.
I have set "StiOptions.Export.Html.setUseStrictTableCellSize(true);" , But it does not work. And the problem also appears in your Photo:
test.jpg
test.jpg (88.76 KiB) Viewed 10435 times
You can add all the borders(Black border) and try again.

More apparent on the web page, my web page is as follows:
testest.png
testest.png (20.32 KiB) Viewed 10435 times
And I also found it only appears when front row set WordWrap=true.

Thank you!
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Vadim »

Hello.
This is by-effect of setUseStrictTableCellSize(true) (html restrictions) therefore default value is false.
Jia Sheng
Posts: 49
Joined: Thu Jul 04, 2013 7:59 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Jia Sheng »

Hello.
We have set "StiOptions.Export.Html.setUseStrictTableCellSize(true);" My web page is :
mywebpage.png
mywebpage.png (28.16 KiB) Viewed 10428 times

Thanks
Vadim
Posts: 362
Joined: Tue Apr 23, 2013 11:23 am

Re: WordWrap does not work on the jsp page(stiwebviewer)

Post by Vadim »

Hello

Thank you for the information.
Let us know if you need any additional help.

Thank you.
Post Reply