--- 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

Reply via email to