Uncaught ReferenceError: OpenedReport is not defined

Posted by: smkrishna007 on 9 July 2018, 3:35 am EST

    • Post Options:
    • Link

    Posted 9 July 2018, 3:35 am EST

    Hi Team,

    Recently i had upgraded to ActiveReports 12 from ActiveReports 10 and added all the dependent files into my project. When i am trying to render the report by passing .rpx file it was showing the below issue.

    Issue:

    Uncaught ReferenceError: OpenedReport is not defined

    In Network tab under Developer tool it was showing the below files are not loaded (404 Not found) .

    Command=ArResource;ScriptId=lib.jquery-1.7.2.min.js.ar12 Command=ArResource;ScriptId=lib.json2.js.ar12 Command=ArResource;ScriptId=resources-12.0.11689.0.js.ar12 Command=ArResource;ScriptId=RSU-12.0.11689.0.js.ar12

    I came to know all this JS files will be rendered from GrapeCity.ActiveReports.Web.v12 dll which i had included into my project .

    Can you please help me to resolve this issue .

    NOTE: I am running all this using a trail version .

    Thanks in Advance.

  • Posted 9 July 2018, 5:22 am EST - Updated 30 September 2022, 6:10 pm EST

  • Posted 9 July 2018, 7:46 am EST

    Hello Krishna,

    Could you please confirm the following things:

    1: Have you upgraded all dll reference of AR10 with Ar12

    2: Have you changed all reference of AR10 with Ar12 in “WebConfig” file

    3: Have you changed the “ActiveReports.ReportService.asmx” file of AR10 with AR12 located at “C:\Program Files (x86)\GrapeCity\ActiveReports 12\Deployment\Web”

    Thanks,

    Mohit

  • Posted 9 July 2018, 8:08 am EST

    HI Mohit,

    I had modified all the above places you specified. i am getting the issue like below.

    In Network tab under Developer tool it was showing the below files are not loaded (404 Not found) .

    Command=ArResource;ScriptId=lib.jquery-1.7.2.min.js.ar12 Command=ArResource;ScriptId=lib.json2.js.ar12 Command=ArResource;ScriptId=resources-12.0.11689.0.js.ar12 Command=ArResource;ScriptId=RSU-12.0.11689.0.js.ar12

  • Posted 9 July 2018, 8:29 am EST

    Web.config files:

  • Posted 10 July 2018, 2:58 am EST

    Hello Krishan,

    Could you please share the scenario when you get this error. If you got this error on refreshing page or “PostBack” situation then please add the following line of code in page load method:

    
     protected void Page_Load(object sender, EventArgs e)
            {
                if (!IsPostBack)
                {
                    Page.ClientScript.RegisterStartupScript(typeof(String), "DisableBeforeUnload", @"<script>window.onbeforeunload = null;</script>");
    
    }
    
    }
    
    

    If possible could you please send us the stripped down sample so that I can replicate at my end.

    Hope it helps.

    Thanks,

    Mohit

  • Posted 10 July 2018, 6:13 am EST - Updated 30 September 2022, 6:11 pm EST

    As it was enterprise project we cannot give code in bits of pieces and also cannot write a sample code as it has dependencies.

    Let me explain the situation.

    1. When i click on an anchor tag it will render to a screen where it will call the activereports webviewer like below.

    <activereportsweb:WebViewer ID=“WebViewer1” runat=“server” ViewerType=“AcrobatReader” Height=“700px”>

    </activereportsweb:WebViewer>

    Note: ViewerType=“AcrobatReader”

    In Code behind we wrote like below as i got my data in that report variable.

    SectionReport report = new SectionReport();

    report.Document.Content = [here i will pass my data in form of bytes]

    WebViewer1.Report = report;

    WebViewer1.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.AcrobatReader;

    after executing it was not showing up any view in the front end except the below error.

    i think it was not loading the relevant javascript files required to load that screen.

  • Posted 11 July 2018, 9:46 am EST

    Hello,

    I am unable to replicate the issue at our end. Could you please modify the attached sample so that I can replicate at my end.

    Thanks,

    Mohit

    WebViewer_AR12.zip

  • Posted 13 July 2018, 8:21 am EST

    Can we connect over a call , let me know your feasible time @Monday (i.e) 16-July.

  • Posted 16 July 2018, 12:40 am EST

    Hello Krishna,

    As per support plan(https://www.grapecity.com/en/support/plans), Phone support is only for our “Platinum”/“With Maintenance” customers. Could you please share your keys detail and license type on SupportOne(Our Private Forum). You can create a ticket on SupportOne by clicking on “Open A Ticket” at the following link:

    https://www.grapecity.com/en/support/contact

    Please don’t share any key related information here, as we know this a public forum.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels