I'm trying to display Blazor WebAssembly report in modal just as a report is shown in winforms dialog
for that I use AntDesign modal component and 'Change viewer options' from your git examples
-I've added Antdesign package
- register the service in Program.cs: builder.Services.AddAntDesign();
- added @using AntDesign in _Imports.razor
-added <AntContainer /> in App.razor
-added in wwwroot/index.html <link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" /> and <script src="_content/AntDesign/js/ant-design-blazor.js"></script>
(steps got from https://antblazor.com/en-US/docs/introduce )
I've attached a sample project,a regular component is shown fine but when I try to show StiBlazorViewer component in Ant modal,the report is show but menus no working and in console got:
'StiJsViewer' was undefined
Code: Select all
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'StiJsViewer.UpdateViewerWebAssembly' ('StiJsViewer' was undefined).
Error: Could not find 'StiJsViewer.UpdateViewerWebAssembly' ('StiJsViewer' was undefined).
at http://localhost:50502/_framework/blazor.webassembly.js:1:1287
at Array.forEach (<anonymous>)
....
Microsoft.JSInterop.JSException: Could not find 'StiJsViewer.UpdateViewerWebAssembly' ('StiJsViewer' was undefined).
Error: Could not find 'StiJsViewer.UpdateViewerWebAssembly' ('StiJsViewer' was undefined).
at http://localhost:50502/_framework/blazor.webassembly.js:1:1287
at Array.forEach (<anonymous>)
at e.findFunction (http://localhost:50502/_framework/blazor.webassembly.js:1:1247)
....