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

PictureBox in Detail in PDF

5 Answers 208 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fabian Schulz
Top achievements
Rank 1
Fabian Schulz asked on 31 Oct 2007, 10:26 PM
Hello,

I am using a picturebox inside the detail section of a report.

Everything looks fine in the web based viewer, but when I choose to export that report to PDF only the first image on every page is displayed (It is a multi-page report). The other image boxes are just blank (the border set is displayed).

This happens when I just use a fixed resource as source for the picturebox (no databinding at all).

What can I do to display multiple images on a page?

I have seen that you use that feature in a demo report (http://www.telerik.com/demos/reporting/Reporting/Examples/DataBinding/DefaultCS.aspx), but I cannot see what you do different to my approach.

I am using Telerik Reporting Q2 2007.

Thanks,

Fabian

5 Answers, 1 is accepted

Sort by
0
Fabian Schulz
Top achievements
Rank 1
answered on 01 Nov 2007, 12:26 PM
I tried it now with a databound PictureBox to a System.Drawing.Image as well. Does not work either.

This looks like a bug to me.

Greetings,

Fabian
0
Svetoslav
Telerik team
answered on 01 Nov 2007, 03:06 PM
Hello Fabian,

In the mentioned example we display images from the Web (to get better view of the example internals please review the sample solutions that are deployed by the Telerik Reporting setup) as the images are referenced by URL. It possible to use an embedded resource or reference a local file by full or relative path.

For more information regarding the PictureBox item please review this help topic and the Telerik Reporting Sample reports.

Best wishes,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Fabian Schulz
Top achievements
Rank 1
answered on 01 Nov 2007, 03:10 PM
Hello Svetoslav,

thanks for your reply. I am using an embedded resource and the problem is, that only the first image on a page is displayed in the PDF generated by the export. In the webviewer however, everything looks fine.

Do you have an idea why that could be?

Thanks,

Fabian
0
Svetoslav
Telerik team
answered on 01 Nov 2007, 04:17 PM
Hi Fabian,

We need to examine your report so we can say for sure what really the reason for your trouble is.
Meanwhile you may review the Events report from our sample solution where we use embedded images:

    this.pbLargePhoto.Value = ((object)(resources.GetObject("pbLargePhoto.Value")));

Thank you.

Kind regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Fabian Schulz
Top achievements
Rank 1
answered on 04 Nov 2007, 12:42 PM
Hi Svetoslav,

thanks for your reply.

I'll open up a support ticket then -

thanks,

Fabian
Tags
General Discussions
Asked by
Fabian Schulz
Top achievements
Rank 1
Answers by
Fabian Schulz
Top achievements
Rank 1
Svetoslav
Telerik team
Share this question
or