After running my report on my older version of Linux I have indeed seen
that it does print landscape as expected. So this doesn't appear to be a
Lazarus problem. I know its not CUPS or the print filters because my
other programs don't have any trouble printing Landscape.
So any insight as to what other libraries Lazarus (on Linux) is using
for printing would be a big help to try and determine where the failing
component is. Maybe its a GTK thing? I use the TPrintDialog component to
setup the initial print environment and then in code I force it to
Landscape.
THX - Jon
Jesus Reyes wrote:
--- Jon Foster <[EMAIL PROTECTED]> escribió:
I've run into a problem with the "Printers" unit. I have a piece of
code
that was working with 0.9.20 but isn't working with 0.9.24. It
seems
that when you configure a print job for landscape it doesn't take
affect
until the second page. The first page still prints portrait. Here
is a
snippet of code to demonstrate:
if not PrintDialog1.execute then exit;
with printer do begin
orientation:=poLandscape;
PaperSize.PaperName:='Letter'; { This should be the default }
BeginDoc;
canvas.TextOut(100, 100, 'Portrait Text')
newpage;
canvas.TextOut(100, 100, 'Landscape Text')
EndDoc;
end;
I've even tried setting the "landscape" setting in the print dialog
caused by the first line and I get exactly the same results. Is
there a
fix for this?
THX - Jon
--
Jon Foster
What OS? if windows, please try revision r13448 or later, your sample
code works fine here under windows with default printer, if problem
persist please submit a bug report.
Jesus Reyes A.
____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.yahoo.com.mx/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
Jon Foster
JF Possibilities, Inc.
[EMAIL PROTECTED]
541-410-2760
Making computers work for you!
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives