- Home
- Forum
- ASP.NET MVC
- Initial zoom factor and Report Parameters
Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Initial zoom factor and Report Parameters
Hi
For a report viewer page in my ASP.net MVC5 app, I want to set initial zoom levels to 200% and "Whole Page"
It does not seem to be working
I tried this
@(Html.EJ().ReportViewer("reportsample").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote).ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/reportviewer")).ReportPath("~/App_Data/STA_IrradianceVsGeneration.rdl").RenderingComplete("myRepLoaded").ZoomFactor("200%").IsResponsive(true).ToolbarSettings(tb => tb.Items(Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.All & ~Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.PageNavigation)))
but the report is rendered at 100% only
Secondly
I cannot extract some report parameters during ReportRenderingComplete Event handling
var reportviewerObj = $("#reportsample").data("ejReportViewer");
reportviewerObj.fitToPageWidth(); // To fit the report page width.
reportviewerObj.fitToPageHeight();
var data = (reportviewerObj.getParameters()); // To get the parameters.
var obj = JSON.parse(JSON.stringify(data));
While obj[0].Name, obj[0].Prompt,obj[0].DataType are readable, obj[0].Value and obj[0].Label are 'Undefined', while, I can see them in Json String returned to the browser.
Pls note that the parameter holder is a combobox (date selector in yyyy-MM-dd format). The date list comes from a query/
Please advise
Regards
Ajay
SIGN IN To post a reply.
1 Reply
YD
Yuvaraj Devarajan
Syncfusion Team
February 1, 2018 02:25 PM UTC
Hi Enrochem,
Thanks for contacting Syncfusion support.
| For a report viewer page in my ASP.net MVC5 app, I want to set initial zoom levels to 200% and "Whole Page" It does not seem to be working I tried this @(Html.EJ().ReportViewer("reportsample") .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums. ProcessingMode.Remote).ReportServiceUrl (VirtualPathUtility.ToAbsolute("~/api/reportviewer")).ReportPath ("~/App_Data/STA_IrradianceVsGeneration.rdl") .RenderingComplete("myRepLoaded").ZoomFactor("200%") .IsResponsive(true).ToolbarSettings(tb => tb.Items(Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.All & ~Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.PageNavigation))) but the report is rendered at 100% only | We were able to reproduce the mentioned problem at our end and logged this as an bug report. We will consider to include this bug in our Essential studio volume 1 SP 1 2018 release. | |
| Secondly I cannot extract some report parameters during ReportRenderingComplete Event handling var reportviewerObj = $("#reportsample").data("ejReportViewer"); reportviewerObj.fitToPageWidth(); // To fit the report page width. reportviewerObj.fitToPageHeight(); var data = (reportviewerObj.getParameters()); // To get the parameters. var obj = JSON.parse(JSON.stringify(data)); While obj[0].Name, obj[0].Prompt,obj[0].DataType are readable, obj[0].Value and obj[0].Label are 'Undefined', while, I can see them in Json String returned to the browser. Pls note that the parameter holder is a combobox (date selector in yyyy-MM-dd format). The date list comes from a query/ | We can get the default parameter value specified in the report when using the “renderingComplete” event in ReportViewer directly as shown in below code example,
We have prepared a sample and it can be downloaded from below location, Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ReportSample441452696.zip Please refer to the below UG document for more detail, If we have misunderstood your requirement, then share detailed information about your scenario to provide solution for your requirement. |
Regards,
Yuvaraj D.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
EN Enrochem
- Jan 31, 2018 01:22 PM UTC
- Feb 1, 2018 02:25 PM UTC