Blazor Integration

I am trying to integrate the viewer into my existing blazor project, I thought I had copied everything from the sample but cant seem to get past this issue and unable to debug:

I added references to the Doconut.Config, Formats and Viewer DLL’s, updated the startup.cs to match the sample, added JS files and updated _Host.cshtml to load them and added the DocView.razor component.

I implemented the same OpenDocument method on the local page that is using the viewer and I am just passing a filename to it in the same way but get this exception raised from the OpenDocumentInstanceJS method:

System.ArgumentNullException: ‘Value cannot be null. Arg_ParamName_Name’

Capture.PNG (40.6 KB)

Managed to get this working now.

I think I was missing some of the Nuget packages and some config in startup.cs

Worked out another null reference issue as the DocView wasn’t being rendered in the markup until some other event made it visible.

@prwilliams1982,

I’m glad you solve the issue successfully.
Let me know if you have any other questions regarding the viewer.