Autor Beitrag
olga
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Do 28.08.03 12:55 
:shock: versuche vergebens, herauszufinden, wie ich ein fertiges Formular (z.B. Form1) als Bild (.jpeg, .bmp,...) abspeichern koennte. Ausdrucken kann ich es, ja... Danke fuer Tipps! :?

Moderiert von user profile iconAya: Thread verschoben.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 28.08.03 13:02 
Hi,
falsches Forum :-)

Wie wärs mit nen screenhot vom formular :?:

Greetz
onlinehome
olga Threadstarter
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Do 28.08.03 13:06 
Danke fuer Deine schnelle Antwort! Und wo steckt dieser screenhot genau? Ich meine nicht den Knopf - der reagiert eh nicht - gibt es vielleicht eine elegantere Methode? Sagen wir, eine automatische Ausgabe von ausgewaehlten Teilbereichen des Formulars als Bildchen? :o
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 28.08.03 13:35 
Ähm....
vielleicht kannste das mit ner API Funktion machen. mehr weiß ich auch net.

Greetz
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 28.08.03 13:59 
Du könntest die Form während der Laufzeit so abspeichern:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
procedure TForm1.FormClick(Sender: TObject);
VAR myImage : TBitmap;
    rect : TRect;
begin
  rect.Left :=0;
  rect.Top := 0;
  rect.Right := Form1.ClientWidth;
  rect.Bottom := Form1.ClientHeight;

  myImage := TBitmap.Create;

  myImage.Width := Form1.ClientWidth;
  myImage.Height := Form1.ClientHeight;

  myImage.Canvas.CopyRect(rect,form1.Canvas,rect);

  myImage.SaveToFile('c:\bild.bmp');

  myImage.free;
end;


MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".