Geeks With Blogs
Ilya Verbitskiy Thoughts and links about computer programming

 

Thank you everybody for useful feedback, suggestions, bug ad bug fixes. Today I have published the latest changes on NuGet.

  • Added Method(FormMethod) method to Fluent interface to specify the way to send parameters to the iframe. FormMethod.Get is default. All parameters sent in URL. FormMethod.Post created a hidden form on the page and submits it to the iframe. This method allows sending long parameters to the report. FormMethod.Post works in IE 9.0, Chrome 0.2, Firefox 1.0, Opera 9.0 and Safari 3.1 or newer versions.
  • Added support for report parameter’s multiple values to report viewer extensions:
    • Fluent interface: MultipleReportParameters (IEnumerable<KeyValuePair<string, object>> reportParameters)
    • @Html.MvcReportViewer(string reportPath, IEnumerable<KeyValuePair<string, object>> reportParameters, object htmlAttributes)
  • Added support for report parameter’s multiple values to report runner:
    • FileStreamResult Report(this Controller controller, ReportFormat reportFormat, string reportPath, IEnumerable<KeyValuePair<string, object>> reportParameters)
    • FileStreamResult Report(this Controller controller, ReportFormat reportFormat, string reportPath, string reportServerUrl, IEnumerable<KeyValuePair<string, object>> reportParameters, string username = null, string password = null)
  • Removed ShowParameterPrompts setting. You can set all Report Viewer control’s UI settigns using ControlSettings(ControlSettings settings) method from fluent interface.
  • Fixed bug in Chrome browser.

There are still a lot of things to do. First of all I would like to implement Local Mode support. There were several people asking about this functionality. Unfortunately I still do not have clear idea how to do it nicely. Then I would like to migrate the project to ASP.NET MVC 5 and create special versions for ASP.NET MVC 3 and 4.

Posted on Monday, January 20, 2014 12:45 AM | Back to top


Comments on this post: MvcReportViewer v.0.3.0 is available!

# re: MvcReportViewer v.0.3.0 is available!
Requesting Gravatar...
I'm having a problem with the control settings in the fluent interface, i have ShowExportControls, ShowPrintButton, ShowRefreshButton and Show Find Controls set to false.

However on Chrome the Zoom controls are hidden when they should be shown and Refresh, Export and Print are still visible when they should be hidden.

IE11 shows all controls despite their hidden status in the control settings.
Left by Matt on Feb 20, 2014 5:20 PM

# re: MvcReportViewer v.0.3.0 is available!
Requesting Gravatar...
As far as I know not all ReportViewer functionality supported by all browsers. You may take a look here - http://msdn.microsoft.com/en-us/library/ms156511.aspx

I think I had similar issue in Chrome as well. I fixed the problem setting these parameters:

Height="100%"
ZoomMode="PageWidth"
SizeToReportContent="True"

You can find additional information here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/e25d0cc3-1890-4893-968c-9876ccd684b5/report-viewer-is-not-working-in-google-chrome?forum=sqlreportingservices
Left by Ilya on Feb 21, 2014 2:26 PM

# re: MvcReportViewer v.0.3.0 is available!
Requesting Gravatar...
I was able to hide the buttons in V0.2.0 by editing the MvcReportViewer.aspx file, however i removed that and switched to using the ControlSettings and Fluent in version 0.3.0.

Also do you know if it is possible to pass a stylesheet to the report viewer, it is possible to pass a stylesheet to the ReportViewer on the report server by using the following parameter

rc:StyleSheet=new_StyleSheet

However i haven't been able to find a way to pass it using the MvcReportViewer
Left by Matt on Feb 24, 2014 1:29 PM

# re: MvcReportViewer v.0.3.0 is available!
Requesting Gravatar...
http://technet.microsoft.com/en-us/library/ms345247.aspx

See that Url for information on customising style sheets, the appropriate section is the one right at the bottom.
Left by Matt on Feb 24, 2014 1:34 PM

# re: MvcReportViewer v.0.3.0 is available!
Requesting Gravatar...
Matt,

Do you know how to pass stylesheet parameter to ASP.NET ReportViewer control? I have not found a way how to do that yet.

If you provide me this information I will add this feature to the MVC helper. I think it will be useful for others.
Left by Ilya on Feb 25, 2014 1:08 AM

Your comment:
 (will show your gravatar)


Copyright © Ilya Verbitskiy | Powered by: GeeksWithBlogs.net