Page 1 of 2
Problem with Max Number of Line in Viewer
Posted: Thu Jan 19, 2017 6:15 am
by Togo
Hi,
We have some text components on a report with the "Max Number of Line" set to 5, and when exporting the report to PDF those text was correctly trimmed down to 5 lines, but that setting seems not in effect when the report is viewed in WebViewer / WebViewerFx. Any ideas on what might be wrong?
Thanks.
Re: Problem with Max Number of Line in Viewer
Posted: Thu Jan 19, 2017 11:06 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please clarify which version are you use?
Thank you.
Re: Problem with Max Number of Line in Viewer
Posted: Thu Jan 19, 2017 1:29 pm
by Togo
Hi,
We are using version 2016.2.5, and the properties of the text is as below.

- hsd_text1.png (18.26 KiB) Viewed 6698 times

- hsd_text2.png (17.5 KiB) Viewed 6698 times
We have also tried the pre-release 2016.3.4, and the problem still exists.
Also when we tried to export the report to PDF / XPS with the pre-release, an exception occured.
PDF:
Code: Select all
Exception information:
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
at Stimulsoft.Report.Export.PdfFonts.ReduceFontSize(Byte[]& buff, String fontName, Boolean remakeGlyphTable)
at Stimulsoft.Report.Export.StiPdfExportService.RenderFontTable()
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Web.StiExportsHelper.ExportReport(StiRequestParams requestParams, StiReport report, StiExportSettings settings)
at Stimulsoft.Report.Web.StiWebViewer.ExportReportResult(StiRequestParams requestParams, StiReport report, StiExportSettings settings)
at Stimulsoft.Report.Web.StiWebViewerFx.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
XPS:
Code: Select all
Exception information:
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
at Stimulsoft.Report.Export.PdfFonts.StiOpenTypeHelper.SetUInt16(Byte[] buff, Int32 pos, UInt16 value)
at Stimulsoft.Report.Export.PdfFonts.StiOpenTypeHelper.ReduceFontSize(Byte[]& buff, String fontName, Boolean remakeGlyphTable, UInt16[] GlyphList, UInt16[] GlyphRtfList)
at Stimulsoft.Report.Export.StiPdfExportService.RenderFontTable()
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
at TGReport.ReportViewer.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks.
Re: Problem with Max Number of Line in Viewer
Posted: Sat Jan 21, 2017 7:53 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please send us a simple report with test data which reproduces the issue for analysis.
Thank you.
Re: Problem with Max Number of Line in Viewer
Posted: Thu Jan 26, 2017 2:52 am
by Togo
Hello
We have tried to create a new report with a single field and static data and the problems are the same; the test report is attached below.
- Test.mrt
- (6.27 KiB) Downloaded 537 times
Thanks
Re: Problem with Max Number of Line in Viewer
Posted: Thu Jan 26, 2017 11:51 am
by HighAley
Hello.
Togo wrote:We have some text components on a report with the "Max Number of Line" set to 5, and when exporting the report to PDF those text was correctly trimmed down to 5 lines, but that setting seems not in effect when the report is viewed in WebViewer / WebViewerFx. Any ideas on what might be wrong?
The default mode in the Web Viewer is Table mode. In this mode the text makes components larger.
Please, try to set next property of the StiWebViewer:
Thank you.
Re: Problem with Max Number of Line in Viewer
Posted: Fri Jan 27, 2017 7:56 am
by Togo
Hello,
Thanks for your reply, we have tried the ReportDisplayMode property in WebViewer and it does have some effect, however we still have below issues:
PDF Exported by WebViewer 2016.2.5 - correctly limited to 5 rows of text

- hsd_pdf.png (5.07 KiB) Viewed 6674 times
1. For WebViewer it seems the height is not accurate as there is half of line 6 being shown:

- hsd_v.png (6.39 KiB) Viewed 6674 times
2. For WebViewerFx the ReportDisplayMode property is obviously not available, and it seems there is an extra row (line 6) being shown:

- hsd_vfx.png (5.35 KiB) Viewed 6674 times
3. An exception is still being thrown when trying to export the report to PDF by choosing the corresponding option in WebViewer / WebViewerFx [Version 2016.3 / pre-release 2016.3.4] (stack trace posted in previous post)
Thanks
Re: Problem with Max Number of Line in Viewer
Posted: Mon Jan 30, 2017 6:50 am
by HighAley
Hello.
An exception is still being thrown when trying to export the report to PDF ...
The error occurs with the PMingLiU.ttf font.
We can't reproduce the issue.
Could you send us the font file that you are using and we will try to reproduce and fix the issue,
Thank you.
Re: Problem with Max Number of Line in Viewer
Posted: Tue Feb 07, 2017 12:51 pm
by Togo
Hello
HighAley wrote:Hello.
An exception is still being thrown when trying to export the report to PDF ...
The error occurs with the PMingLiU.ttf font.
We can't reproduce the issue.
Could you send us the font file that you are using and we will try to reproduce and fix the issue,
Thank you.
The PMingLiU font is the one included in Windows and the server having issue is running Windows Server 2008 R2 (PMingLiU in mingliu.ttc v7.00, same font version included in Windows 7).
Thank you
Re: Problem with Max Number of Line in Viewer
Posted: Thu Feb 09, 2017 7:35 am
by HighAley
Hello, Togo.
It seems that the font is available in one of the language packs.
Please, send us the font file that you use on your machine.
Thank you.