Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Image with URL type and export in PDF
anto_11
Hi all,
I'm new in developing with Birt's API ..so I need your help for solve my
problem.
At the moment, I'm able to create image with URL source type (the url links
my application that integrates BirtEngine; ie.
"/BirtReportEngine/BirtImageServlet?chart_label=CHR_****_AGE&cat_group="+params["cat_group"].value),
so with any modifies to BirtImageServlet I can execute an external chart,
get its inputstream and view the result like an image. It runs correctly if
I export the document in HTML format BUT if I export the same document in
PDF format I have next error:
"Current report item is not supported in this report format."
I think because the pdf format doesn't support 'URL' like source type. I'm
wrong?
Someone can help me with some suggestions?
I need a general management for obtain external chart and it must be able to
export in any format (html, pdf, jpg as minimum).
Thanks in advance,
Antonella
ps. I'm using Birt 2.5.0 and tomcat 5.5
Find more posts tagged with
Comments
anto_11
Hi all,
I'm ever Antonella...
For solve my problem, maybe I can define the image's type as FILE but the problem is that it doesn't recognize the relative url and so it doesn't call my BirtImageServlet (where I put my code for getting the external chart's stream).
So, now I think that I can make a workaround writing a myImageHandler class in which I can call my web server for get the stream...BUT in api's documentation I seen only the classe IHTMLImageHandler and not a superclass ImageHandler... so I'm not sure that it's a good way for solve my problem... because securly I need a similar management for format like PDF, DOC, XLS...
So... I need very much of your experience for solve this question...
In which way I can execute an image with different logic? Where I can insert my logic?
Thank you,
Antonella