How to assign Port to GetReportSnapshot or GerReportTemplate

Stimulsoft Reports.WEB discussion
Post Reply
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

How to assign Port to GetReportSnapshot or GerReportTemplate

Post by Abbas »

Hi..
I Use StimulSoft Ver:2015.2 in my MVC Web Application I Use This Code In My View :

Code: Select all

@Html.Stimulsoft().RenderMvcViewerScripts();
<div>
    @Html.Stimulsoft().StiMvcViewerFx(options: new StiMvcViewerFxOptions
    {
        Theme = StiThemeFx.Office2013,
        Actions =
        {
            GetReportSnapshot = "GetReportSnapshotForPeriodic",

            // ViewerEvent = "ViewerEvent",
            //Interaction = "Interaction",
            //DesignReport = "GetReportTemplate"
        },
        Appearance =
        {

        },
        Toolbar =
        {

            ShowParametersButton = true
        }
    })
</div>
When I run the application it works correct in LocalNetwork but when I use microtech to redirect my Valid Ip To My Local and I run the web site from valid ip it gots error of:
Failed to load resource: the server responded with a status of 404 (Not Found)

Infact GetReportSnapshot = "GetReportSnapshotForPeriodic",not find on server with port 8818 or any other port
how can I redirect to Getreportsnapshot with same ip and port?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Post by HighAley »

Hello.

Please, try to set next option:

Code: Select all

@Html.Stimulsoft().StiMvcViewerFx(options: new StiMvcViewerFxOptions
    {
        Server =
        {
             UseRelativeUrls = true
        }
Thank you.
Abbas
Posts: 27
Joined: Tue Oct 13, 2015 2:10 pm

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Post by Abbas »

Thank you very very much Aleksey
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Post by Andrew »

Hello, Abbas.

We are glad to help you.

Thank you.
Post Reply