Autor Beitrag
Tendl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 23.05.03 14:09 
Hallo Leute,
ich suche eine Möglichkeit einen Treeview als Text oder auch Grafik auf dem Drucker
auszugeben. Da ich sicher nicht der Erste bin, der so etwas tun möchte, weiß vielleicht jemand wo ich entsprechende Routinen oder Komponenten finden kann.

Danke
Thomas
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Sa 24.05.03 11:30 
:? Ich wäre auch an einer Lösung interessiert... Leider ist ja der Canvas einer TreeView nur auf den sichtbaren Bereich begrenzt.
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Sa 24.05.03 11:53 
Hi,

www.wpcubed.com/download.htm

auf der genannten Site gibt es die Komponente wPDF mit der man PDF-Dateien erstellen kann. Man kann damit aus dem Program heraus mit dem Canvas der Komponente PDF's erstellen. Es öffnet sich dann der Acrobat-Reader und man kann es ausdrucken. Die Komponente ist Shareware, aber in dem Download sind auch Demos enthalten. Unter anderem ein Beispiel wie man eine TreeView ausdruckt.

Kannst ja mal schauen wie die das gemacht haben.

MFG

- Ernesto -
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 24.05.03 12:51 
speicher dcoh den treeview in eine datei rein.

treeview1.items.savetofile ('c:\blah.txt'); oder so ähnlich und druck dann die text datei aus.

da ist dann jeder neue zweig mit einem TAB eingerückt. ist optisch nicht so rasend ansprechend aber es geht.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Sa 24.05.03 14:38 
@ErnestoChe: Das ist keine Lösung, da - wie schon gesagt - der Canvas eines TreeView immer nur den sichtbaren Bereich umfasst (den man übrigens auch direkt drucken kann ;) )...

@matze: Als Text speichern und drucken ist keine Lösung, da es dann keine grafische Ausgabe wird.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 24.05.03 17:56 
ok du hast recht.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
japetos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 06.10.05 15:28 
bin auch an so einer Loesung interessiert.
Habt ihr dazu eine gefunden?
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 06.10.05 15:38 
--> die JVCL hat da glaub ich was, aber ka welche Komponente genau

_________________
Programmers never die, they just GOSUB without RETURN