如何将图像正确插入到BIRT报告中? [英] How to insert an image into a BIRT report with an URL properly?

查看:618
本文介绍了如何将图像正确插入到BIRT报告中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse中的URL将网页中的图像插入到BIRT报告中,但不起作用。它在布局屏幕上显示一点红色的X,如果我选择运行/查看报告/作为PDF,则表示该报告项目的资源不可达。



这里有什么问题?



提前感谢任何帮助!

解决方案

尝试从网络添加您可以通过浏览器访问的图像。这样你就可以确保自己没有通过URI访问您的图像的问题。



例如添加此URL

  http:// hajduk。 hr / sadrzaj / slike-za-vijesti / 640x320 / 2010-06-08-jerkovic.jpg 

您在报告中看到图像:





将图像作为嵌入图像包含在报告文件中的其他方式。在此片段中



您可以看到如何将图像添加到报告文件中。完成后,绑定显示小红色图标的图像元素与嵌入的图像。通过双击报告上的图像元素,并从弹出选择嵌入图像的对话框中执行此操作。





从第二个片段中,您可以看到,如果您有更多相同图像的报告,则可以从Shared资源中包含图像,这些图像将派上用场。例如客户的标识,公司标志等。


I inserted an image from the web into a BIRT report using an URL in Eclipse, but it doesn't work. It displays a little red X on the Layout screen, and if I choose Run/View Report/As PDF it says "The resource of this report item is not reachable."

What is the problem here? I have googled for hours but found nothing.

Thanks in advance for any help!

解决方案

Try adding image from web which you can access via your browser. That way you'll assure yourself you don't have problems with accessing your image via URI.

For example add this URL

http://hajduk.hr/sadrzaj/slike-za-vijesti/640x320/2010-06-08-jerkovic.jpg

and you see the image in your report:

Other way to include your image as embedded image in report file. On this snippet

you can see how to add image to your report file. After you do it, bind your image element which displays little red icon with your embedded image. Do this by double clicking the image element on report and from dialogue which will popup chose embedded image.

From this second snippet, you see that you can include image from Shared resources which comes in handy if you have more reports with same image on it. For instance logo of your client, your company logo etc.

这篇关于如何将图像正确插入到BIRT报告中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆