URL for ActionViewerEvent

Stimulsoft Ultimate discussion
Post Reply
vladimir.mirchevski
Posts: 18
Joined: Wed Jan 28, 2015 11:09 am

URL for ActionViewerEvent

Post 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 ?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: URL for ActionViewerEvent

Post by HighAley »

Hello, Vladimir.

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

Thank you.
vladimir.mirchevski
Posts: 18
Joined: Wed Jan 28, 2015 11:09 am

Re: URL for ActionViewerEvent

Post 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.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: URL for ActionViewerEvent

Post by HighAley »

Hello, Vladimir.

Please, try to set next option:

Code: Select all

StiMvcViewerOptions.ServerOptions.UseRelativeUrls = true;
Thank you.
vladimir.mirchevski
Posts: 18
Joined: Wed Jan 28, 2015 11:09 am

Re: URL for ActionViewerEvent

Post by vladimir.mirchevski »

That works. Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: URL for ActionViewerEvent

Post by HighAley »

Hello, Vladimir.

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

Thank you.
Post Reply