alanjuden / MvcReportViewer

Custom Report Viewer control to replace MS Report Viewer on MVC projects (also works on .NET Core as a Report Viewer).
MIT License
173 stars 109 forks source link

How to use HtmlFragment and custom URL? #38

Open nhaberl opened 7 years ago

nhaberl commented 7 years ago

Hey,

my website is public and I want to serve my reports over a subdomain ... this works for the initial request but how can I achieve that when rendering a HTMLFragment (deviceinfo) ... the images there have relative paths to the report server.

Do you know a way to handle this ? What is your CustomUrl Property exactly doing ?

alanjuden commented 7 years ago

Hey @nhaberl, sorry I missed this question you posted.

If you override the UseCustomReportImagePath on your report controller, it will replace the original image urls from the ssrs report request with image paths that map to your local site and can pass back into the SSRS api with the appropriate context.

Alan