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
Merry Christmas & Happy New Year!!
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

Reply via email to