Re: Fwd: <rotate degrees="90"/>
"Brenda J. Butler" <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, We'd like to help, but we're not sure what to do what the info you've sent us. Is it a document? I guess it's a PDF document (because that's what reportlab produces), but I guess it's not a whole PDF document. Also, you haven't said what the problem is. I mean, you gave some document fragments, but you didn't say how they actually render and what you expected. Ok, we can guess you expected it (or part of it) to be rotated by 90 degrees. Did that section show at all? Was it removed from the document? Was it rotated the wrong way? Did it show up in the document in the wrong place? The best way to get help is to make a minimal document that demonstrates the problem, and send the reportlab code that generated it to the list so we can reproduce the problem ourselves. A description of what went wrong is also helpful, and/or a small screenshot of what it looks like when you render it. Other useful info for helping with the debug effort is what version of reportlab you're using and what platform you're using it on (what version of python, what Operating System). You might also mention what viewer you are using and its version number. Have you tried looking at it with more than one viewer? bjb On 11/22/2013 04:52 AM, Cristina Borgnis wrote: > 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 <http://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 <http://container.id>) > </para> > </td> > </tr> > </blockTable> > > > > > > > > > ---------- Forwarded message ---------- > From: *Cristina Borgnis* <[email protected] <mailto:[email protected]>> > Date: 2013/11/11 > Subject: <rotate degrees="90"/> > To: [email protected] <mailto:[email protected]> > > > 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> > > > > > _______________________________________________ > reportlab-users mailing list > [email protected] > http://two.pairlist.net/mailman/listinfo/reportlab-users > -- }{ Centre for Research and Experimental Development in Informatics Libre Brenda J. Butler [email protected] +1 613 693 0684 #3202 F3018 - 283 Alexandre Taché Gatineau (QC) J9A 1L8 CANADA Sustainable Innovation // Innovation Durable