This is a migrated thread and some comments may be shown as answers.

I can't see images...

4 Answers 355 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 26 May 2008, 11:17 PM
Hello everybody...

I am using VisualStudio 2005 (C#) for developing of a web application. I need to create a report with images (using Telerik Reporting), this images are in a server; on the design of my report I put a simple "picturebox" for each image.

In the VALUE property I wrote: http://charal.dns.com/ee/logo.jpg

If I send to print my report, the images don't appear, only print this message: #ERROR# Unable to connect to the remote server.


Please, if someone has an idea, tell me what must I do...


Another question: in a web application can I put an image as a static image although using the Telerik Reporting Control??

Thanks...

Jeavy...

4 Answers, 1 is accepted

Sort by
0
Aydın Kara
Top achievements
Rank 1
answered on 27 May 2008, 09:10 AM
Hi,

I have the same problem. But as a workaround I copied the picture to my web application folder and gave that path to the picturebox. So the picture is embedded into application dll. This solution works for static images that will not change.
0
Rossen Hristov
Telerik team
answered on 27 May 2008, 10:57 AM
Hello Javier,

Thank you for contacting Telerik Support.

When you enter this URL in your browser do you see the actual image? We tried to load the URL you supplied but we were redirected to http://www.dns.com. If the image cannot be retrieved from the URL, then Telerik Reporting has no way to show it.

As for your second question, if you click the ellipsis of the Value property of the PictureBox item, you will be presented with a dialog. There you can select a local image and it will be serialized in the Report's resource file (.resx). In this way the image will "go" everywhere along with the report. An example of this can be seen in our Samples Solution, the EventsReport.

More about the PictureBox item you can learn from here.

We would also advise you to move your reports in a separate class library project as described in the Best Practices section, in case you have not already done so.

Please do not hesitate to contact us if you have any further questions.

Sincerely yours,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
scubasteveb
Top achievements
Rank 1
answered on 02 Sep 2010, 08:37 PM
HI,
We have a similar situation in which we are referencing images for the PictureBox in the report with an absolute URL that goes to a different physical machine.

The image exists on the other server and when we reference the URL in a normal ASPX page (image src property) it displays properly. However when we generate a PDF from the Report Processor, we receive an error "no connection could be made because the target machine actively refused it: <remote server IP>:80"

I don't understand why I can access this image which is on a publicly accessible server and it works while running the ASPX page from the other server, but the report generator can't retrieve a remote image using the absolute URL.

Please advise

Thanks
0
Steve
Telerik team
answered on 03 Sep 2010, 05:15 PM
Hi scubasteveb,

We were no able to reproduce the behavior you describe. I've attached a sample report that has a picturebox using absolute URI as Value and works as expected both in viewer and exported PDF file.

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Javier
Top achievements
Rank 1
Answers by
Aydın Kara
Top achievements
Rank 1
Rossen Hristov
Telerik team
scubasteveb
Top achievements
Rank 1
Steve
Telerik team
Share this question
or