0
winhost created
5 Answer(s)
-
0
Hi @winhost
In new version of Devexpress something changed. We will update the document. You can solve your problem by following the solution below.
- Create a CustomWebDocumentViewerController like this
using DevExpress.AspNetCore.Reporting.WebDocumentViewer; using DevExpress.AspNetCore.Reporting.WebDocumentViewer.Native.Services; namespace WebApplication1.Controllers { public class CustomWebDocumentViewerController : WebDocumentViewerController { public CustomWebDocumentViewerController(IWebDocumentViewerMvcControllerService controllerService) : base(controllerService) { } } }
- Go to your [YOURAPPNAME]WebMvcModule
- Add this class dependency injection into PreInitialize function
IocManager.Register(typeof(CustomWebDocumentViewerController), DependencyLifeStyle.Transient);
Have an answer to this question?
Log in
and write your answer.