Page 1 of 1

URL for ActionViewerEvent

Posted: Wed Mar 25, 2015 2:53 pm
by vladimir.mirchevski
Hi,

We have the Stimulsoft Reports.Ultimate and we use the MVC Viewer.

Code: Select all

                   @Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
                   {
                       Theme = StiTheme.Default,
                       ActionGetReportSnapshot = "GetReportSnapshot",
                       ActionViewerEvent = "ViewerEvent",
                       ActionPrintReport = "PrintReport",
                       ActionExportReport = "ExportReport",
                       ActionInteraction = "Interaction"
                   })
Is there a way to assign full URL instead of action for ActionViewerEvent ?

Re: URL for ActionViewerEvent

Posted: Thu Mar 26, 2015 6:56 am
by HighAley
Hello, Vladimir.

Could you describe your task more detailed?
Do you need to specify a controller?

Thank you.

Re: URL for ActionViewerEvent

Posted: Thu Mar 26, 2015 8:58 am
by vladimir.mirchevski
One of our clients has their website bound to an http protocol. Their router is only accessible through https, so they route the https url to http. The url for the ViewerEvent that is generated looks like this: http://clienturl.com/controller/ViewerEvent,
and the url for the view is: https://clienturl.com/controller/viewexportreport.

Re: URL for ActionViewerEvent

Posted: Thu Mar 26, 2015 11:47 am
by HighAley
Hello, Vladimir.

Please, try to set next option:

Code: Select all

StiMvcViewerOptions.ServerOptions.UseRelativeUrls = true;
Thank you.

Re: URL for ActionViewerEvent

Posted: Thu Mar 26, 2015 2:03 pm
by vladimir.mirchevski
That works. Thank you.

Re: URL for ActionViewerEvent

Posted: Fri Mar 27, 2015 5:12 am
by HighAley
Hello, Vladimir.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.