0
winhost created
5 Answer(s)
-
0
Hi @winhost
Can you please check the steps in that document https://docs.devexpress.com/XtraReports/401762/web-reporting/asp-net-core-reporting/document-viewer-in-asp-net-applications/quick-start/add-the-document-viewer-to-an-aspnet-core-application
-
0
I followd your link but i didn't solve the problem.
I'll send you an email with the project.
thanks a lot
-
0
Hi @winhost
Did you solve this problem ?
Thanks,
-
0
No, please check my email with link of project.
Thanks a lot
-
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);