[reportlab-users] Fwd: <rotate degrees="90"/>
Cristina Borgnis
kicchy at gmail.com
Fri Nov 22 04:52:59 EST 2013
Hello All,
I'm still having problems with rotation. (<rotate degrees="90"/>)
I would like to rotate an element but there is something wrong.
Can someone help me? please! (the code is below)
Thanks,
Cristina
<document filename="">
<docinit>
<registerTTFont faceName="Ariali" fileName="ariali.ttf"/>
<registerTTFont faceName="Calibri" fileName="calibri.ttf"/>
<registerTTFont faceName="Calibribold" fileName="calibrib.ttf"/>
<registerTTFont faceName="Mi_Code_128" fileName="Code128.ttf"/>
</docinit>
<template name="one" showBoundary="0">
<pageTemplate id="main" pageSize="(55mm,30mm)">
<frame id="Barcode" x1="20mm" y1="10mm" width="2.5cm"
height="24mm"/>
<frame id="Barcode1" x1="10mm" y1="10mm" width="100mm"
height="1.4cm"/>
<frame id="HeadR" x1="27mm" y1="23mm" width="15mm"
height="7mm"/>
<frame id="HeadL" x1="12mm" y1="23mm" width="15mm"
height="7mm"/>
<frame id="ContainerCode" x1="12mm" y1="10mm" width="15mm"
height="3mm"/>
<frame id="ContainerInfo" x1="12mm" y1="1mm" width="15mm"
height="10mm"/>
<frame id="ContainerOther" x1="27mm" y1="1mm" width="30mm"
height="10mm"/>
<frame id="Analyser" x1="0mm" y1="0mm" width="30mm"
height="10mm" />
<frame id="Organization" x1="42mm" y1="23mm" width="15mm"
height="7mm" />
<frame id="ContainerCodeV" x1="42mm" y1="10mm" width="15mm"
height="3mm"/>
</pageTemplate>
</template>
<stylesheet>
<paraStyle name="normal"
fontName="Calibri"
fontSize="4"
leftIndent="0mm"
spaceBefore="0mm"
spaceAfter="0mm"
leading="-1"
/>
<paraStyle name="normalb"
fontName="Calibribold"
fontSize="4"
leftIndent="0mm"
spaceBefore="0mm"
spaceAfter="0mm"
leading="-1"
/>
<paraStyle name="normalBigB"
fontName="Calibribold"
fontSize="6"
leftIndent="0mm"
spaceBefore="0mm"
spaceAfter="0.5mm"
leading="-1"
/>
<paraStyle name="normalBig"
fontName="Calibri"
fontSize="6"
leftIndent="0mm"
spaceBefore="0mm"
spaceAfter="0.5mm"
leading="-1"
/>
<paraStyle name="code"
fontName="Mi_Code_128"
fontSize="32"
fontHeight="15mm"
leftIndent="0cm"
spaceBefore="0mm"
/>
<blockTableStyle id="general">
<blockValign value="TOP"/>
<blockAlignment value="RIGHT" />
<blockFont name="Calibri" size="9"/>
<!--<lineStyle kind="GRID" thickness="1"
colorName="red"/>-->
</blockTableStyle>
</stylesheet>
<story>
<!--<barCodeFlowable code="Code128" value="$(sampleid)"
></barCodeFlowable>-->
<nextFrame />
<para style="code">$(sampleid138)</para>
<nextFrame name="HeadR"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBig">
[$(date)]
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBigB">
$(patient.firstname)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBig">
($(patient.sex_name))
</para>
</td>
</tr>
</blockTable>
<nextFrame name="HeadL"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBig">
$(request)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBigB">
$(patient.lastname)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBig">
$(patient.birthdate)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="ContainerCode"/>
<blockTable style="general">
<tr>
<td>
<para style="normal">
$(container.id)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="ContainerInfo"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBigB">
$(container.sample_label_descrip)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBigB">
$(container.material_label_descrip)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBigB">
$(container.tube_label_descrip)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="ContainerOther"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBig">
$(container.label_descrip)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="Organization"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBig">
$(collpoint_name)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="Analyser" />
<blockTable style="general">
<tr>
<td>
<rotate degrees="90"/>
<para style="normalBig">
$(container.label_lab_device_description)
$(container.label_short_descrip)
</para>
</td>
</tr>
<tr>
<td>
<para style="normalBig">
$(center_name)
</para>
</td>
</tr>
</blockTable>
<nextFrame name="ContainerCodeV"/>
<blockTable style="general">
<tr>
<td>
<para style="normalBig">
$(container.id)
</para>
</td>
</tr>
</blockTable>
---------- Forwarded message ----------
From: Cristina Borgnis <kicchy at gmail.com>
Date: 2013/11/11
Subject: <rotate degrees="90"/>
To: reportlab-users at lists2.reportlab.com
Hello All,
I have a problem with the use of <rotate degrees="90"/>.
I'm trying to rotate an element in a table but without success. Can someone
help me to understand what is wrong in the code below?
Thanks a lot!
<nextFrame name="Analyser" />
<blockTable style="general" rowHeights='1cm' colWidths='1cm'>
<tr>
<td>
<rotate degrees="90"/>
<para style="normalBig">
CENTAR
</para>
</td>
</tr>
</blockTable>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20131122/08a391fc/attachment.html>
More information about the reportlab-users
mailing list