|
Re: Image(chart) not display in HTML report [message #790009 is a reply to message #789589] |
Fri, 03 February 2012 17:41 |
|
Are you setting the BaseImageURL to point back to the server where the
image resides?
Jason
On 2/3/2012 1:39 AM, Deepali Patil wrote:
> Hi,
>
> I am trying to generate report on server machine, and accessing it
> through web-service on client machine.
>
> Through web-service I give call to the code which generate and returns
> report as a file, I save this file on my machine and use it further.
> When I choose HTML format; report generates HTML file with temp folder
> for .svg images, when I pull the report file(HTML)on my machine, the
> temp folder is still on server machine and it tries to find image source
> on my machine. If I open same HTML report on server it shows the chart.
> I am trying to set ImageDirectory and BaseImageURL but its not working.
>
> Please help me resolve the issue.
>
> Thanks,
> Deepali.
|
|
|
|
Re: Image(chart) not display in HTML report [message #792348 is a reply to message #791668] |
Mon, 06 February 2012 22:44 |
|
if you open explored on the client machine and put in:
file://///192.168.1.254/BIRTImages
Does it open the share on the linux box? Are you using SAMBA on the
Linux box? Another option would be to setup tomcat on Linux and make
the url in a web context.
Jason
On 2/6/2012 12:30 AM, Deepali Patil wrote:
> Hi,
>
> Thanks for your quick reply.
>
> Below is my code that I have used to set image directory and imageURL
> for HTML report,
> I have shared BIRTImages folder on server machine(Linux)
> final RenderOption options = getRenderOptions(outputFormat);
> if("html".equalsIgnoreCase(outputFormat)) {
> ((HTMLRenderOption)
> options).setImageDirectory("\\\\192.168.1.254\BIRTImages");
> options.setImageHandler(new HTMLServerImageHandler());
> ((HTMLRenderOption)
> options).setBaseImageURL("file://///192.168.1.254/BIRTImages");
> }
>
> above code is working fine with windows machine, but when same code I
> tried on linux machine it's not showing chart image. And gives belows
> error...
>
> 6 Feb, 2012 9:51:17 AM org.eclipse.birt.report.engine.api.impl.Image
> writeImage
> SEVERE: /192.168.1.254/BIRTImages/customba86ef13550e4e3c31.svg (No such
> file or directory)
> java.io.FileNotFoundException:
> /192.168.1.254/BIRTImages/customba86ef13550e4e3c31.svg (No such file or
> directory)
>
> Please suggest me something which will work on both windows and linux
> machine.
>
> Thanks,
> Deepali.
|
|
|
|
Re: Image(chart) not display in HTML report [message #793191 is a reply to message #792808] |
Tue, 07 February 2012 21:32 |
|
If you do this:
I tried to make image URL in tomcat by placing context path in
tomcat/conf/server.xml inside the <Host> tag as below
<Context path="/images" docBase="/home/developer/images" />
and enter a url in a browser to http://server:port/images does it show
the list of images in the browser. If it does change your baseURL to be
http://server:port/images
Jason
On 2/7/2012 7:39 AM, Deepali Patil wrote:
>
> I tried to make image URL in tomcat by placing context path in
> tomcat/conf/server.xml inside the <Host> tag as below
> <Context path="/images" docBase="/home/developer/images" />
|
|
|
|
Re: Image(chart) not display in HTML report [message #793847 is a reply to message #793422] |
Wed, 08 February 2012 16:45 |
|
Add the image name to the end of the url ie:
<Context path="/images" docBase="c:/test7/" />
http://localhost:8090/images/cc1.png
If this works you should be able to change the baseURL in the engine and
get it working.
Jason
On 2/8/2012 12:30 AM, Deepali Patil wrote:
> Hi,
>
> If I enter url http://server:port/images/ in the browser it gives me
> following error.
>
> HTTP Status 404 - /images/
> type Status report
> message /images/
> description The requested resource (/images/) is not available.
> Apache Tomcat/7.0.19
>
>
> Please guide.
>
> Thanks,
> Deepali.
|
|
|
|
|
|
Re: Image(chart) not display in HTML report [message #795550 is a reply to message #795297] |
Fri, 10 February 2012 15:48 |
|
The tribix emitters handle ppt and doc I believe.
Jason
On 2/10/2012 4:53 AM, Deepali Patil wrote:
> Hi,
>
> Thank you very much.
> All your suggestion worked for me,
> native-excel-plugin also worked fine, similarly is there any plugin for
> doc and ppt format.
>
> Thanks,
> Deepali.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04702 seconds