Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Aspnet zero MVC integration with Devexpress Reporting : error - "Devexpress is not defined" #12205


User avatar
0
omkarchoudhari created

We are implementing reporting using aspnetzero MVC V13.2.0 and .NET 8. We are using Devexpress reporting package to design and export/download report in PDF and Excel format. We carried out following steps for this : 1. Downloaded Devexpress reporting 24.1.6 on asp.net version 13.2.0 and .NET framework .NET 8 after installing it and implementing 2. https://docs.aspnetzero.com/aspnet-core-mvc/latest/DevExpress-Reporting-Implementation#:~:text=DevExpress%20Reporting%201%20Download%20DevExpress%20Reporting.%202%20Open,go%20to%20Startup.cs%20and%20add%20these%20code%20parts%3A getting error on index.cshtml. 3.We also tried downgrading the version but still it is throwing the same error. In this document, we will integrate DevExpress Reporting to ASP.NET Zero (ASP.NET Core version) step by step. THIS IS HIGH PRIORITY CUSTOMER PROJECT ! Can you please help us with the issue ? Hoping to hear from you soon.


3 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @omkarchoudhari,

    Did you run yarn create-bundles command? Also please check 9, 10, 13 step

  • User Avatar
    0
    omkarchoudhari created

    Hi @omkarchoudhari,

    Did you run yarn create-bundles command? Also please check 9, 10, 13 step

    @**m.aliozkaya **We tried this command but after executing this command still there was an issue regarding DevExtreme library is missing.

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @omkarchoudhari,

    Can you check your bundles.json?

    Examle below

    {
      "scripts": [
        {
          "output": "view-resources/Areas/App/Views/_Bundles/sample-report-min.js",
          "input": [
            "node_modules/jquery-ui-dist/jquery-ui.js",
            "node_modules/knockout/build/output/knockout-latest.js",
            "node_modules/devextreme/dist/js/dx.all.js",
            "node_modules/@devexpress/analytics-core/dist/js/dx-analytics-core.js",
            "node_modules/devexpress-reporting/dist/js/dx-webdocumentviewer.js"
          ]
        }
      ],
      "styles": [
          {
          "output": "/view-resources/Areas/App/Views/_Bundles/sample-report.min.css",
          "input": [
            "node_modules/jquery-ui-dist/jquery-ui.css",
            "node_modules/devextreme/dist/css/dx.common.css",
            "node_modules/devextreme/dist/css/dx.light.css",
            "node_modules/@devexpress/analytics-core/dist/css/dx-analytics.common.css",
            "node_modules/@devexpress/analytics-core/dist/css/dx-analytics.light.css",
            "node_modules/devexpress-reporting/dist/css/dx-webdocumentviewer.css"
          ]
        }
      ]
    }