Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6192 มุมมอง

Hi,

I know this post is a bit off-boundaries of openerp, but as rml is used in openerp, and my question could help others I write it here.

I would like to draw a red line in rml. I have already my line but I didn't see anywhere in the rml documentation how to set a different color for lines. Below is my actual line :

<lines>1.3cm 24.9cm 19.9cm 24.9cm</lines>

I have tried this :

<lines strokeColor="red">1.3cm 24.9cm 19.9cm 24.9cm</lines>`

But without success. Do you know how to set a color for a line object in rml ?

Thank you for your help

Cheers

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Use < hr > tag to draw line in rml

and also visit below link:

Link

or

   <lineStyle kind="LINEBEFORE" colorName="green" start="0,0" stop="0,-1"/>
   <lineStyle kind="LINEABOVE" colorName="green" start="0,0" stop="0,-1"/>
   <lineStyle kind="LINEBELOW" colorName="white" start="0,0" stop="0,-1"/>
อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your help but it does not work.

ผู้เขียน คำตอบที่ดีที่สุด

I found the solution using this :

<stroke color="red"/>
<lines >1.3cm 24.9cm 19.9cm 24.9cm</lines>
<stroke color="black"/>

<stroke color="black"/> is needed to switch back the color to back. Otherwise all the next lines are drawn in red.

อวตาร
ละทิ้ง

Is it working? cuz for me this solution is not working. <stroke color> is only working on characters enclosed within <drawstring> tag. Lines still appear black only

ผู้เขียน

yes it is working with me.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 23
11716
1
มี.ค. 18
4404
0
ต.ค. 16
3483
4
ต.ค. 15
3752
0
ก.ย. 15
4440