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

get file from application layer #8656


User avatar
0
bosalah created

hi >> angular 8 + asp core 3.1 i am trying to use RDLC report file file from aplication layer and convert it to pdf the same way u make excle export files but with rdlc to pdf converter my qustion is: can i use the file directly from aplication layer or i have to convert it to "Embedded Resource File" and use it from web host controller i tryied alot but i have error that say " file path not found "


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Inject the IWebHostEnvironment interface, try adding the WebRootPath property of IWebHostEnvironment to the path.

    see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/file-providers?view=aspnetcore-3.1