![]() |
ListBox Drucken??
Wie kann ich die Einträger einer ListBox Standart-Delphi-Komponente ausdrucken lassen? :gruebel:
|
Re: ListBox Drucken??
Von Hand jeden Eintrag auf den Canvas des Druckers ausgeben.
|
Re: ListBox Drucken??
:wiejetzt:
|
Re: ListBox Drucken??
Zitat:
Zitat:
Canvas des Druckers???? Canvas=??? :cry: *HILF!* :cry: |
Re: ListBox Drucken??
hi
gut das niemand weiss, das ich google heiss :) ![]() cya HaZe |
Re: ListBox Drucken??
Zitat:
Dank trotzdem... :mrgreen: |
Re: ListBox Drucken??
Zitat:
|
Re: ListBox Drucken??
Kann mir einer sagen wie ich Listboxen drucken kann wenn ich mehrere habe die mit Tabulatoren gedruckt werden sollen. Sprich ich habe 4 Listboxen und die sollen auf dem Druck in 4 Spalten vom Blatt eingetragen werden. Ich kann ich das am besten lösen
Meine Druck Functuon kommt von ![]()
Delphi-Quellcode:
procedure PrintTextboxContent(Source: TStrings);
// TStrings : TStrings is the base class for objects that represent a list of strings. var (* A file is an ordered set of elements of the same type. Standard I/O routines use the predefined TextFile or Text type, which represents a file containing characters organized into lines. *) filetype: TextFile; n: Word; // *** Laufvariable : Word 0..65535 unsigned 16-bit begin // *** Assigns a text-file variable to the printer. AssignPrn(filetype); try // Rewrite : Creates a new file and opens it. Rewrite(filetype); try // for n ... Anzahl der Zeilen in dem Textfeld Memo1 for n := 0 to Source.Count -1 do // Writes to a text file and adds an end-of-line marker writeln(filetype, Source.Strings[n]); finally // Terminates the association between file variable and an // external disk file. CloseFile(filetype); end; except (* EInOutError = EInOutError is the exception class for file input/output errors. *) on EInOutError do MessageDlg('Error...', mtError, [mbOk], 0); end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:09 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