تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6265 أدوات العرض

Hi, 

Below is my rml report tag for displaying an image. However, it does not display any image in the pdf. 

<image file="addons/mymodule/report/lightweight.jpg" x="300" y="700" />

I also tried to use the url image path like "http://mydomain.com/images/test.jpg", it looks like may be there is something else missing here?

Any advise on where should I put my image file/s or how to resolve this issue? Thanks.

الصورة الرمزية
إهمال
أفضل إجابة

This bugged me for a while. Your code is correct, but it has to be between <pageGraphics> tags in <pageTemplate>. For example:


<document filename="$foo.pdf">
<template pageSize="(8.5in,11in)" title="$foo" author="$user">
<pageTemplate id="first">
<pageGraphics>
<image file="addons/mymodule/report/lightweight.jpg" x="300" y="700" />
...
</pageGraphics>
...
</pageTemplate>
...


Hope that helps!

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
3920
3
مارس 15
5082
1
يوليو 25
1870
1
مايو 20
3299
0
مارس 20
3268