Home
Analytics
Image Displaying in PDF Issue
megabri
<p>I'm having an issue when running my report. I have an image element that's set as a URI. It dynamically generates the image based on a link that I get in a query. When I generate the report in a web viewer the images display fine (see birtimageworking.jpg). When I export the report to PDF the images don't display and I get an "The resource of this report item is not reachable." message instead of my image (see ReportNotWorking.pdf). I've attached the report design file as well (the image element it towards the bottom). Please help!</p>
Find more posts tagged with
Comments
Matthew L.
<p>I copied your table and added my own example data and this seems to be working (See attached example).</p><p>Could it be that the images you are linking to require a token to access them?</p><p>Or could you provide us with a URL to a sample image that works in the browser but not in the PDF that we could access as well?</p>
megabri
<p>I'm not sure that you'll be able to access it because it's part of our company's website but it's urls like <a data-ipb='nomediaparse' href='
http://camsengprd:7001/DOCLINKS/PHOTOSFLAGOPEN/P4280185_rotated.jpg'>http://camsengprd:7001/DOCLINKS/PHOTOSFLAGOPEN/P4280185_rotated.jpg</a>
. I'm not sure about the token issue because they generate when I run the report in a web viewer. They just fail to show up when i try to export it to PDF. </p>
kclark
<p>megabri -- are you going directly to PDF from the designer or using the WebViewer? If you're going directly to PDF can you try the WebViewer and let me know what your results are?</p>
megabri
<p>I'm using Maximo so it automatically generates in the Web Viewer first. When I do that I see the images. When I click the export to PDF button the PDF comes up but has that message instead of my images.</p>
Matthew L.
<p>I believe I know what's happening.</p><p>When your viewing the report in the viewer you are accessing the image location from your approved VPN.</p><p>However when you are generating the PDF, it is generating on the Maximo's engine side which does not have access to the image.</p><p> </p><p>As I have just attempted to use the same image link you provided above, I do not have access to view the image and when generating the PDF I receive the "The resource of this report item is not reachable." message as well.</p><p> </p><p>If you could move the image to a location that is accessible via the Internet or allow access for Maximo servers to access the image files, I believe this will correct the behavior.</p>
megabri
<p>That could be the case. When I'm in maximo i can go to Attachments and view the images though. Wouldn't that be the same issue?</p>
Matthew L.
<p>I'm not sure how Maximo works, however perhaps the user interface and the engine side are on different servers.</p>
megabri
<p>Hmm maybe. I'll ask one of the database people here on monday. Maybe the issue isn't BIRT related.</p>
svg2014
<p>Hi Megabri,</p>
<p>Was this resolved? I am have the same problem. In my case the images are not on a restricted server.</p>
<p> </p>
<p>Thanks</p>