Ver:  FOP 0.20.5

I need to print a report using a dot matrix printer. The paper size that I'll be using is 8.5in x 14.875in. I initially test it on our laser printer using a letter size paper. The output looks good. On a dot matrix printer (Lexmark 2381+) the font size and line height is totally wrong and its printed sideways.

This report will be generated by a batch program. In most cases it will be sent to the printer without user intervention. (this part I have a handle by following the servlet example). Other reports will have to use pre-printed forms. I would appreciate it if anybody could respond to this problem and point out some best practice concerning the use of dot matrix printer on FOP.

The following is a sample FO file of my report.

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master margin-right="0.5in" margin-left="0.5in" margin-bottom="0.0in" margin-top="0.0in" page-width="14.875in" page-height="8.5in" master-name="Continuous-Form-Wide">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence line-height="8pt" font-size="10pt" font-family="Courier" master-reference="Continuous-Form-Wide">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="3pt"> </fo:block>
<fo:block space-after.optimum="3pt"> </fo:block>
<fo:block space-after.optimum="3pt"> JTRP006 - QPRINT Override w/ Printer File Page: 1 </fo:block>
<fo:block space-after.optimum="3pt"> </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
<fo:block space-after.optimum="3pt">This will print LPI(8) &amp; CPI(12). </fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to