Re: Fastreport und TPrintDialog
..kann ich diesen Drucker Fettmarkieren?
Das Ereignis ist onDrawItem.. aber was nun... :( |
Re: Fastreport und TPrintDialog
Neue Frage -> Neuer Thread.
Vorher aber mal die Suche benutzen. Ich bin fast sicher das wir das schon einmal hatten. |
Re: Fastreport und TPrintDialog
So. Nun habe ich alles was ich wissen wollte. Vielen Dank!
Delphi-Quellcode:
Du hast natürlich recht bezüglich der Suchfunktion! Wer suchen kann ist klar in Vorteil :)
procedure bx_druckerDrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState); begin with cbx_drucker do begin Canvas.FillRect(Rect); If Index = Printer.PrinterIndex then Canvas.Font.Style := [fsBold] else Canvas.Font.Style := []; Canvas.TextOut(Rect.Left, Rect.Top, Items[Index]); end; end |
Re: Fastreport und TPrintDialog
[quote]
Printer.PrinterIndex gibt den Standarddrucker an.
Delphi-Quellcode:
nein. das ist der augewähle drucker. Wenn ich mit Printdialog einen anderen auswähle, dann ist dann wird das als STANDARD drucker angezeigt.
begin
ComboBox1.Items := Printer.Printers; ComboBox1.ItemIndex := Printer.PrinterIndex; end; |
Re: Fastreport und TPrintDialog
Zitat:
Beim Programmstart ist .PrinterIndex auf den Standarddrucker eingestellt. Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:50 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz