Problem with Max Number of Line in Viewer
Problem with Max Number of Line in Viewer
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.
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
Hello,
We couldn't reproduce this bug.
Please clarify which version are you use?
Thank you.
We couldn't reproduce this bug.
Please clarify which version are you use?
Thank you.
Re: Problem with Max Number of Line in Viewer
Hi,
We are using version 2016.2.5, and the properties of the text is as below. 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:
XPS:
Thanks.
We are using version 2016.2.5, and the properties of the text is as below. 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)
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)
Re: Problem with Max Number of Line in Viewer
Hello,
We couldn't reproduce this bug.
Please send us a simple report with test data which reproduces the issue for analysis.
Thank you.
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
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.
Thanks
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.
Thanks
Re: Problem with Max Number of Line in Viewer
Hello.
Please, try to set next property of the StiWebViewer:
Thank you.
The default mode in the Web Viewer is Table mode. In this mode the text makes components larger.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?
Please, try to set next property of the StiWebViewer:
Code: Select all
ReportDisplayMode="Div"
Re: Problem with Max Number of Line in Viewer
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 1. For WebViewer it seems the height is not accurate as there is half of line 6 being shown: 2. For WebViewerFx the ReportDisplayMode property is obviously not available, and it seems there is an extra row (line 6) being shown: 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
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 1. For WebViewer it seems the height is not accurate as there is half of line 6 being shown: 2. For WebViewerFx the ReportDisplayMode property is obviously not available, and it seems there is an extra row (line 6) being shown: 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
Hello.
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 error occurs with the PMingLiU.ttf font.An exception is still being thrown when trying to export the report to PDF ...
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
Hello
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).HighAley wrote:Hello.
The error occurs with the PMingLiU.ttf font.An exception is still being thrown when trying to export the report to PDF ...
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.
Thank you
Re: Problem with Max Number of Line in Viewer
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.
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.