<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yeah.... mostly. It now prints Landscape on the first page. However the
top margin on the first page is about an half an inch off meaning that
the top half inch is missing (printed above the paper). All of the
other pages print OK. I can at least write a band-aid for this in my
program. If I get a chance I'll file a bug report on this behavior too.<br>
<br>
THX - Jon<br>
<br>
PS: I did file a bug report on this "landscape" problem.<br>
<br>
Jesus Reyes wrote:
<blockquote cite="mid:781267.36214.qm@web53205.mail.re2.yahoo.com"
 type="cite">
  <pre wrap="">

--- El mié 17-sep-08, Jon Foster <a class="moz-txt-link-rfc2396E" href="mailto:jon-lists@jfpossibilities.com"><jon-lists@jfpossibilities.com></a> escribió:

  </pre>
  <blockquote type="cite">
    <pre wrap="">De:: Jon Foster <a class="moz-txt-link-rfc2396E" href="mailto:jon-lists@jfpossibilities.com"><jon-lists@jfpossibilities.com></a>
Asunto: [Lazarus] Landscape printing problem
A: "lazarus" <a class="moz-txt-link-rfc2396E" href="mailto:lazarus@miraclec.com"><lazarus@miraclec.com></a>
Fecha: miércoles, 17 septiembre, 2008, 11:31 am
OK, I've brought this up here before and was told this
wasn't a Lazarus 
problem. I half way believe that. Half way because it
appears to be an 
incompatibility between Lazarus and something else.

My problem is quite simple. I wrote a report that uses the
"printers" 
unit for output. I use TPrintDialog.execute to setup the
printer and 
then use printers.printer() to get a TPrinter object that I
then use to 
render my report. I'm printing this report landscape,
which is where my 
problem comes in. The first page is always portrait and
every page there 
after is landscape.

The first thing I do is set the TPrinter's orientation
property to 
poLandscape. It should always be landscape. The weird thing
is this 
works on an old SuSE 9.0 install I keep around because its
the only 
thing that will run this report properly. I've tried it
on two other 
current versions of Linux: Debian 4.0 and Ubuntu 8.04. Both
of these 
exhibit the problem. I'm using the exact same compiled
binary on all 
distributions.

My build environment is using FPC 2.2.0 and Lazarus 0.9.25
from SVN, an 
older version downloaded sometime around January 2008.
I'm running on 
Intel 32bit Linux on all the systems that I tried. Here are
hopefully 
relevant software versions for the three distros I've
tried it on:

Distro          GS                      CUPS    HPIJS   Works?
Ubuntu 8.04     Artifex GPL 8.61        1.3.7   2.8.2   
Debian 4        ESP 815.03              1.2.7   2.6.10  
SuSE 9.0        ESP 7.07                1.1.19  2.1.4   Y


I've listed HPIJS because that is the print driver I
need to support my 
HP Business Inkjet 1200. In the SuSE version I built the
HPIJS myself. 
The other two I'm using what came with the distro.

This is making me crazy. Any help would be appreciated.

THX - Jon

-- 
Jon Foster
JF Possibilities, Inc.
<a class="moz-txt-link-abbreviated" href="mailto:jon@jfpossibilities.com">jon@jfpossibilities.com</a>
541-410-2760
Making computers work for you!

    </pre>
  </blockquote>
  <pre wrap=""><!---->

11 days ago, in revision 16443 a fix for landscape page orientation was commited, please try that revision or newer and report back if it's fixed, if not please submit a bug report and a sample project.

Jesus Reyes A.


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - <a class="moz-txt-link-freetext" href="http://correo.yahoo.com.mx/">http://correo.yahoo.com.mx/</a> 

_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Jon Foster
JF Possibilities, Inc.
<a class="moz-txt-link-abbreviated" href="mailto:jon@jfpossibilities.com">jon@jfpossibilities.com</a>
541-410-2760
Making computers work for you!
</pre>
</body>
</html>