bugreport bei kraft........
Oder nur gerade Nummern verwenden....
bugreport bei kraft........
Oder nur gerade Nummern verwenden....
Oder nur gerade Nummern verwenden....
Eben, da schon die Seite 2 nicht geht muss die Rechnung auf Seite 1 passen.
Also, sie ist nicht lang und somit nicht so hoch
oder auf Seite Null.
Hinter jeder ungeraden Zahl könnte eine Primzahl stecken. Vielleicht ist das das Problem?
Gut, die letzten Beiträge dürften nicht so richtig weiterhelfen. Ich muss zugeben, dass ich testweise es bisher noch nicht Mal geschafft habe, Kraft überhaupt zum Drucken zu bewegen. Leider kann ich daher nicht so richtig helfen.
Also, jetzt habe ich es in etwa kapiert. Wenn ich unter Kraft auf "Drucken" gehe, spricht er nicht den physischen Drucker an, sondern legt eine Pdf-Datei an. Drucken kann ich, indem ich unter Kraft "Dokument > archiviertes Dokument öffnen" anklicke. Dann wird das Pdf-Dokument mit einem Pdf-Reader geöffnet. Von dort aus kann ich dann drucken. Mit welchem Pdf-Reader wird denn bei Dir das Kraft-Dokument geöffnet? Es scheint dann ja eher ein Problem des Pdf-Readers zu sein.
Alles anzeigenSo ich bin zu hause hier die infos:
Kraft verweist auf /usr/share/kraft/reports/de/invoice.trml
in der datei steht:
XMLAlles anzeigen<?xml version="1.0" encoding="utf-8" standalone="no" ?> <!DOCTYPE document SYSTEM "rml_1_0.dtd"> <document filename="kraft.pdf"> <template pageSize="(21cm, 29.7cm)" leftMargin="2.41cm" rightMargin="0.81cm" topMargin="2.0cm" bottomMargin="2.0cm" title="Kraft Document" author="Kraft http://www.volle-kraft-voraus.de" allowSplitting="20" showBoundary="0"> <template> <setFont name="Times-Roman" size="11" /> </template> <pageTemplate id="first"> <pageGraphics> <setFont name="Times-Roman" size="11" /> <lineMode width="0.5" /> <lines>2.41cm 2.2cm 19cm 2.2cm</lines> <fill color="darkgreen" /> <drawCentredString x="105mm" y="2.3cm">{{MY_NAME}} {{MY_ORGANISATION}}</drawCentredString> <lines>7mm 19cm 12mm 19cm</lines> <lines>2mm 14.65cm 12mm 14.65cm</lines> <fill color="black" /> <setFont name="Times-Roman" size="8" /> <drawString x="25mm" y="24.7cm">{{MY_ORGANISATION}} - {{MY_STREET}} - {{MY_POSTCODE}} {{MY_LOCALITY}}</drawString> <lines>25mm 24.6cm 11cm 24.6cm</lines> <setFont name="Times-Roman" size="10" /> <drawCentredString x="105mm" y="1.8cm">{{MY_STREET}} - {{MY_POSTCODE}} {{MY_LOCALITY}}</drawCentredString> <drawCentredString x="105mm" y="1.4cm">Telephone {{MY_PHONE}} - Fax {{MY_FAX}}</drawCentredString> <drawCentredString x="185mm" y="1.4cm">Page <pageNumber/></drawCentredString> <!-- Here is how you would insert an image at a fixed place on the page: --> <!-- image x="140mm" y="22cm" width="6cm" height="6cm" file="/path/to/the/image.png" --> </pageGraphics> <frame id="address" x1="2.41cm" y1="20.62cm" width="8.5cm" height="4cm"/> <frame id="info" x1="12cm" y1="20.62cm" width="7.41cm" height="1.5cm"/> <frame id="subject" x1="2.41cm" y1="18.2cm" width="17cm" height="1.2cm"/> <frame id="detail" x1="2.41cm" y1="3cm" width="17cm" height="15cm"/> </pageTemplate> <pageTemplate id="others"> <pageGraphics> <setFont name="Times-Roman" size="11" /> <lineMode width="0.5" /> <lines>2cm 2.2cm 19cm 2.2cm</lines> <fill color="darkgreen" /> <drawCentredString x="105mm" y="2.3cm">{{MY_ORGANISATION}}</drawCentredString> <setFont name="Times-Roman" size="10" /> <fill color="black" /> <drawCentredString x="105mm" y="1.8cm">{{MY_STREET}} - {{MY_POSTCODE}} {{MY_LOCALITY}}</drawCentredString> <drawCentredString x="105mm" y="1.4cm">Telephone {{MY_PHONE}} - Fax {{MY_FAX}}</drawCentredString> </pageGraphics> <frame id="content" x1="2.0cm" y1="3.0cm" width="17cm" height="24.5cm"/> </pageTemplate> </template> <stylesheet> <initialize> <alias id="style.normal" value="style.Normal"/> </initialize> <blockTableStyle id="items"> <blockFont name="Helvetica-BoldOblique" size="24" start="0,0" stop="-1,0"/> <blockBackground colorName="lightgrey" start="0,0" stop="-1,0"/> <blockTextColor colorName="white" start="0,0" stop="-1,0"/> <blockValign value="TOP"/> <blockAlignment value="LEFT"/> <blockBottomPadding length="4mm" start="0,1" stop="-1,-1"/> <blockTopPadding length="3mm" start="0,1" stop="-1,-1"/> <lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,0"/> </blockTableStyle> <blockTableStyle id="sums"> <lineStyle kind="LINEABOVE" thickness="1" colorName="black" start="1,-1" stop="2,-1"/> <lineStyle kind="LINEABOVE" thickness="0" colorName="black" start="1,0" stop="2,0"/> <blockBottomPadding length="2mm" /> <blockTopPadding length="2mm" /> </blockTableStyle> <paraStyle name="smallText" fontName="Helvetica" fontSize="10" alignment="justify"/> <paraStyle name="text" fontSize="10" alignment="justify" spaceBefore="1mm" /> <paraStyle name="stext" fontSize="8" alignment="justify" spaceBefore="1mm" /> <paraStyle name="demandtext" fontSize="10" alignment="justify" fontName="Times-Italic" /> <paraStyle name="alternativetext" fontSize="10" alignment="justify" fontName="Times-Italic" /> <paraStyle name="rtext" fontSize="10" alignment="RIGHT" spaceBefore="1mm" /> <paraStyle name="rstext" fontSize="8" alignment="RIGHT" spaceBefore="1mm" /> <paraStyle name="ctext" fontSize="10" alignment="CENTER" /> <paraStyle name="cstext" fontSize="8" alignment="CENTER" /> <paraStyle name="demandrtext" fontName="Times-Italic" fontSize="10" alignment="RIGHT" spaceBefore="3mm" /> <paraStyle name="alternativertext" fontName="Times-Italic" fontSize="10" alignment="RIGHT" spaceBefore="3mm" /> <paraStyle name="addressStyle" fontSize="10" /> </stylesheet> <story> <!-- Address Frame --> <keepInFrame frame="address" onOverflow="shrink"> <xpre style="addressStyle"> <br /> <br /> {{ADDRESS}} </xpre> </keepInFrame> <nextFrame/> <!-- Info Frame --> <para style="text" alignment="right">{{DATE}}</para> <nextFrame/> <!-- Subject Frame --> <h1>{{DOCTYPE}} Nr. {{DOCID}}</h1> <!-- Detail Frame --> <spacer length="1mm" width="1mm"/> <para style="text"> {{SALUT}} </para> <spacer length="1mm" width="1mm"/> {{PRETEXT}} <setNextTemplate name="others" /> <spacer length="18mm" width="1mm"/> <blockTable colWidths="8mm,6.4cm,2.0cm,2.0cm,2.7cm,2.5cm,8mm" style="items" repeatRows="0"> <tr> <td><para style="stext">No</para></td> <td><para style="stext">Item</para></td> <td><para style="stext">Qty.</para></td> <td><para style="stext">Unit</para></td> <td><para style="cstext">Price</para></td> <td><para style="cstext">Sum</para></td> <td><para style="rstext"></para></td> </tr> {{#POSITIONS}} <tr> <td><para style="{{POS_KIND}}text">{{POS_NUMBER}}.</para></td> <td> {{POS_TEXT}} </td> <td><para style="{{POS_KIND}}text">{{POS_AMOUNT}} </para></td> <td><para style="{{POS_KIND}}text">{{POS_UNIT}} </para></td> <td><para style="{{POS_KIND}}rtext">{{POS_UNITPRICE}}</para></td> <td><para style="{{POS_KIND}}rtext">{{POS_TOTAL}}</para></td> <td><para style="{{POS_KIND}}rtext"> {{#TAX_FREE}} a) {{/TAX_FREE}} {{#REDUCED_TAX}} b) {{/REDUCED_TAX}} {{#FULL_TAX}} {{/FULL_TAX}} </para></td> </tr> {{/POSITIONS}} </blockTable> <condPageBreak height="4cm"/> <blockTable colWidths="9.4cm,4cm,3cm,8mm" style="sums" repeatRows="0"> <tr><td></td> <td><para style="text">Net</para></td> <td><para style="rtext">{{NETTOSUM}}</para></td> <td></td> </tr> {{#SECTION_REDUCED_TAX}} <tr><td></td> <td><para style="text">+{{REDUCED_TAX}}% VAT</para></td> <td><para style="rtext">{{REDUCED_TAX_SUM}}</para></td> <td></td> </tr> {{/SECTION_REDUCED_TAX}} {{#SECTION_FULL_TAX}} <tr><td></td> <td><para style="text">+{{FULL_TAX}}% VAT</para></td> <td><para style="rtext">{{FULL_TAX_SUM}}</para></td> <td></td> </tr> {{/SECTION_FULL_TAX}} <tr><td></td> <td><para style="text">Sum</para></td> <td><para style="rtext">{{BRUTTOSUM}}</para></td> <td></td> </tr> </blockTable> {{#TAX_FREE_ITEMS}} <para style="smallText"> a) tax free items ({{COUNT}} pcs.) </para> {{/TAX_FREE_ITEMS}} {{#REDUCED_TAX_ITEMS}} <para style="smallText"> b) items with reduced tax of {{TAX}}% ({{COUNT}} pcs.) </para> {{/REDUCED_TAX_ITEMS}} {{#FULL_TAX_ITEMS}} <para style="smallText"> No label: items with full tax of {{TAX}}% ({{COUNT}} pcs.) </para> {{/FULL_TAX_ITEMS}} {{#SPECIAL_POS}} <spacer length="3mm" width="1mm"/> <para style="smalltext"> Please note: This offer contains {{COUNT}} alternative or demand positions, printed in italic font. These do not add to the overall sum. </para> {{/SPECIAL_POS}} <spacer length="1cm" width="1mm"/> <condPageBreak height="4cm"/> {{POSTTEXT}} <spacer length="0.5cm" width="1mm"/> <para style="text"> {{GOODBYE}} </para> </story> </document>
aber für mich steht da nur text
kann das irgendwer deuten ???
Liegt es vielleicht an der Dokumentkodierung? Also utf-8 durch iso8851-1 ersetzen.
encoding="iso-8859-1"
The "encoding" attribute sets the encoding you want the PDF file to use. ISO-8859-1 is the character
set otherwise known as "US-ASCII" - this encodes the set of characters known as "Latin-1"(or "Latin
Alphabet No 1") and covers the characters from most Western European Languages, as well as some
control characters and graphical characters. RML 1.0 only allows you to use Latin-1 encoding, though
this may change in future. (RML currently also doesn't support Unicode, though we do intend to
support it in the future).
<!DOCTYPE... "rml_1_0.dtd">
This line tells the parser where the Document Type Definition is located. The DTD formally specifies
the syntax of RML.
For documents written in RML, the DTD should always be the current version of rml.dtd. (The rml
DTD should always be called rml_X_X.dtd, where the Xs are replaced by the version number. So, since
the current version of RML is 1.0, the DTD is called rml_1_0.dtd)
Alles anzeigen
Aber warum konnte er dann Rechnung 1 und 3 drucken, Rechnung 2 nicht?
Moin zusammen,
ich denke, das ist ein Fall für den kraft Support.
Du bist definitiv nicht dafür zuständig, deren Programme zu debuggen.
Wer offiziell ein Proggi zur Verfügung stellt, ist auch zuständig bei diesbezüglichen Problemen. Ergo --> Support.
Also, erstens ist Kraft kostenlos - und da darf man nicht allzuviel Support verlangen. Zweitens habe ich hier ja das Ganze in Kraft Mal nachvollzogen. Leider antwortet Jinlaoh83 nicht mehr. Um die Rechnung zu drucken, muss diese einem Pdf-Reader zugewiesen werden. Von dort aus muss gedruckt werden. Es muss also ein Problem des Readers sein, wenn das Drucken nicht funktioniert. Und da würde mich ja einfach Mal interessieren, welchen Reader er nutzt.