Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseCustomReportImagePath not working #84

Open
alicia90 opened this issue Apr 12, 2019 · 3 comments
Open

UseCustomReportImagePath not working #84

alicia90 opened this issue Apr 12, 2019 · 3 comments
Labels

Comments

@alicia90
Copy link

I override the property "UseCustomReportImagePath" to true:

protected override bool UseCustomReportImagePath { get { return true; } }

And the property of

protected override string ReportImagePath
        {
            get
            {
                return "/Report/ReportImage/?originalPath={0}";
            }
        }

But the images in my report no found. The URL generated is :
http://ReportServer&rs%3ASessionID=zf1gau45cjcc0k45o2kus245&rs%3AFormat=HTML4.0&rs%3AImageID=I_1409_1_H

Becouse?

@alicia90
Copy link
Author

The image is stored in a BBDD as field type image

@alanjuden
Copy link
Owner

@alicia90, You've overridden the ReportImagePath to the same value that is defined in the ReportController I created...which has really done nothing for you. If you're hoping to use this on a report server that is internally available you really want to override the "UseCustomReportImagePath" property and set the return value to true. Currently, your images are using the path that is coming from the Report Server. If you set UseCustomReportImagePath = true, then the website will begin acting as a proxy to grab the images for you.

Alan

@alicia90
Copy link
Author

Yes, I set UseCustomReportImgePath = true. But the website don't begin acting as a proxy to grab the images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants