Autor Beitrag
Swordooo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: Mo 11.08.08 21:15 
Hi an alle.
Ich suche etwas, womit man einen Bereich von meinem ChildWin drucken kann (sozusagen einen Ausschnitt/ Screenshot von einem Teil des ChildWin und ausdrucken).

Für Fragen bitte fragen :D

MfG Swordooo


Zuletzt bearbeitet von Swordooo am Di 12.08.08 15:24, insgesamt 1-mal bearbeitet
Swordooo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: Di 12.08.08 12:10 
Hat keiner eine Idee / Vorschlag?

MfG Swordooo
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 12.08.08 12:16 
Pushen erst nach 24 h erlaubt :roll:

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Swordooo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: Di 12.08.08 13:13 
Ja sorry aber es is ehrlichgesagt dringend!

MfG
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 12.08.08 13:50 
Du könntest dir das DC holen (oder auch GetFormBitmap), per BitBlt einen Ausschnitt holen der dem ClientWindow entspricht und das ganze auf den Drucker geben.
Problematisch werden hier einige Controls (ich weiß nicht genau welche) und teilweise verdeckte Fenster.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Swordooo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 119

W2K, Windows XP Professional
Delphi 2005 Personal, Delphi 7 Personal
BeitragVerfasst: Di 12.08.08 14:38 
Okay danke ich werde es ausprobieren. Ich habe noch eine ähnliche Frage:

Wie kann ich den Inhalt von ein paar Labels mitsamt einer Tabelle drucken?

Also im Klartext: (Seitenansicht [Beispiel])

Label1

Label2

Label3

StringGrid1

-----

Hat hierzu jemand eine Idee. Habe in der Suche nichts passendes gefunden :?

Swordooo
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Mo 01.06.09 12:14 
Zum Thema drucken:

Ich wüde das ganze in einem Memo platzieren, also so in etwa:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
Memo.Lines[0]:=Label1.Caption; 
Memo.Lines[1]:=Label2.Caption;
Memo.Lines[2]:=Label3.Caption; 
Memo.Lines[0]:=StringGrid1.Cells.ToString();

...wobei ich mir leider im Moment nicht so ganz sicher bin, wie das wirklich mit dem Stringgrid klappt....
Aber wie Du ein Memo drucken kannst, weißt Du doch - oder?