PictureBox in Detail in PDF

6 posts, 0 answers
  1. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 31 Oct 2007 Link to this post

    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
  2. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 01 Nov 2007 Link to this post

    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
  3. DevCraft banner
  4. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 01 Nov 2007 Link to this post

    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
  5. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 01 Nov 2007 Link to this post

    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
  6. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 01 Nov 2007 Link to this post

    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
  7. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 04 Nov 2007 Link to this post

    Hi Svetoslav,

    thanks for your reply.

    I'll open up a support ticket then -

    thanks,

    Fabian
Back to Top
DevCraft banner