Page 1 of 1

How to assign Port to GetReportSnapshot or GerReportTemplate

Posted: Mon Nov 02, 2015 4:40 am
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?

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Posted: Mon Nov 02, 2015 6:15 am
by HighAley
Hello.

Please, try to set next option:

Code: Select all

@Html.Stimulsoft().StiMvcViewerFx(options: new StiMvcViewerFxOptions
    {
        Server =
        {
             UseRelativeUrls = true
        }
Thank you.

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Posted: Tue Nov 03, 2015 6:09 am
by Abbas
Thank you very very much Aleksey

Re: How to assign Port to GetReportSnapshot or GerReportTemp

Posted: Tue Nov 03, 2015 6:10 am
by Andrew
Hello, Abbas.

We are glad to help you.

Thank you.