Hi,
I have noticed that rendered report pages in your JS viewer do not scale to fit the available page space, but simply show scrollbars. Competitors' products DO scale. Predefined fixed size is not an option, because the available space is almost always dynamic depending on the user's screen size.
This is a serious flaw in 2017. But perhaps am I missing something? Please advise.
Thanks
Auto-resize pages rendered in viewer
Re: Auto-resize pages rendered in viewer
Hello.
Sorry, maybe we don't understand you right.
It's possible to scale a report to a Page Width and Height.
Thank you.
Sorry, maybe we don't understand you right.
It's possible to scale a report to a Page Width and Height.
Thank you.
Re: Auto-resize pages rendered in viewer
Hi,
It's probably me that don't get it, as I just started. Let's say I have the following code
Instead of having the report page 100% rendered within these 400px, I only get half of the page displayed. It seems pretty obvious that the full report should be rendered within the indicated width.
Also, if for example I use relative size for the report container in my code and set I expect that the rendered report resizes automatically when I resize the browser's tab.
Thanks for your help.
It's probably me that don't get it, as I just started. Let's say I have the following code
Code: Select all
//set viewer
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.width = "400px";
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.report = report;
viewer.renderHtml("viewer");
Also, if for example I use relative size for the report container in my code
Code: Select all
<div id='viewer' style='width: 50%;'></div>
Code: Select all
options.width = "100%";
Thanks for your help.
Re: Auto-resize pages rendered in viewer
Hello
I found an answer to "auto-resizing" - in addition to setting the report width during initialization, you also have to set zoom as follows:
Then the report will take the available amount of space.
I found an answer to "auto-resizing" - in addition to setting the report width during initialization, you also have to set zoom as follows:
Code: Select all
options.toolbar.zoom = Stimulsoft.Viewer.StiZoomMode.PageWidth;
Re: Auto-resize pages rendered in viewer
Hello.
The 100% report zoom is a little different.
It comes from our other products. It the scale of the size of the report but not relative size of the page.
You have found the right option.
Thank you.
The 100% report zoom is a little different.
It comes from our other products. It the scale of the size of the report but not relative size of the page.
You have found the right option.
Thank you.