![]() |
Bild beim Ausdrucken kommt klein raus?
Hallo,
im Code finde ich nichts von zoom oder ?
Delphi-Quellcode:
Das Bild im Druckvorschau kommt sehr klein raus !!!
procedure TForm1.Button1Click(Sender: TObject);
Var DestRect:TRect; Begin Printer.BeginDoc; DestRect.Left:=Printer.Canvas.ClipRect.Left + (Printer.Canvas.ClipRect.Right - Form1.Width) div 1; DestRect.Right:=DestRect.Left + Form1.Width; DestRect.Top:=Printer.Canvas.ClipRect.Top + (Printer.Canvas.ClipRect.Bottom - Form1.Height) div 1; DestRect.Bottom:=DestRect.Top + Form1.Height; Printer.Canvas.CopyRect( DestRect, Form1.Canvas, Form1.ClientRect); Printer.EndDoc; end; |
Re: Bild beim Ausdrucken kommt klein raus?
Hi,
du kannst ja selber vergrößern:
Delphi-Quellcode:
Nicht getestet.
Const
Zoom = 10; begin ... Printer.Canvas.CopyRect(Rect(DestRect.Left, DestRect.Top, DestRect.Right* Zoom, DestRect.Bottom* Zoom), Canvas, ClientRect); Printer.EndDoc; |
Re: Bild beim Ausdrucken kommt klein raus?
Delphi-Quellcode:
_____ ___ __ _ _ _ _____
| _ \ / | | \ | | | | / / | ____| | | | | / /| | | \| | | |/ / | |__ | | | | / / | | | |\ | | |\ \ | __| | |_| | / / | | | | \ | | | \ \ | |___ |_____/ /_/ |_| |_| \_| |_| \_\ |_____| |
Re: Bild beim Ausdrucken kommt klein raus?
Mit der Fehlermeldung, habe ich das Problem so gelöst
Delphi-Quellcode:
:mrgreen:
If FileExists('test.txt') Then
bla bla else exit end;
Delphi-Quellcode:
_____ _____ _ _ _____ _____
/ ___| | _ \ | | | | / ___/ / ___/ | | | |_| | | | | | | |___ | |___ | | _ | _ / | | | | \___ \ \___ \ | |_| | | | \ \ | |_| | ___| | ___| | \_____/ |_| \_\ \_____/ /_____/ /_____/ |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:13 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz