Autor Beitrag
Asus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 17.01.08 14:52 
Hallo,
wie kann ich die gesamte Form drucken?
Also alles was da druf is Edit Felder etc.

MFG Asus
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Do 17.01.08 14:59 
hi,

schau mal hier:

Suche in: Delphi-Forum, Delphi-Library FORM DRUCKEN

mfg
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 17.01.08 15:01 
Lustig, dass sich Delphi und Englisch so ergänzen:

ausblenden Delphi-Quelltext
1:
Form1.Print;					


:-D

_________________
Die Lösung ist nicht siebzehn.
Asus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 17.01.08 15:15 
ausblenden Delphi-Quelltext
1:
Form1.Print;					


Das funktioniert nicht unter Vista
Escalade
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 18

Win 95 Only
Pascal only
BeitragVerfasst: Do 17.01.08 15:17 
Titel: Vista
Jo schmeiss weg dein Vista, hol dir Win95
Asus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 17.01.08 15:21 
Wie witzig sorry bloß auf den LapTop hier darf man kein anderes drauf machen wegen Garantier oder so
Zumindest will ich ne form drucken unter Vista kann niemand helfen?
Escalade
ontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 18

Win 95 Only
Pascal only
BeitragVerfasst: Do 17.01.08 15:26 
Titel: Lappi
Schmeiss weg dein Lappi, hol dir ne Backbone, biste genauso mobil wie mit nem Lappi
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Do 17.01.08 15:29 
Wollen wir uns hier mit dem Drucken einer Form oder mit Hardwareproblemen befassen 8) :shock: :D?

_________________
Die Lösung ist nicht siebzehn.
Asus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Do 17.01.08 15:33 
Ich denke mit Form drucken
Escalade spam mal net so rum oO

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
var bmp: TBitmap;  

 
begin  
bmp:=tbitmap.create;  
 bmp:=Tgraph.GetFormImage;  

 
printer.Orientation:=polandscape;  
printer.Title := ('Mein Form');  
  with Printer do  
  begin  
    BeginDoc;  
    // Mit BeginDoc wird ein Druckauftrag initiiert.  
    // The StartDoc function starts a print job.  
    try  
      ScaleX := GetDeviceCaps(Handle, logPixelsX) div PixelsPerInch;  
      ScaleY := GetDeviceCaps(Handle, logPixelsY) div PixelsPerInch;  
      // Informationen über die Auflösung  
      // Retrieves information about the Pixels per Inch of the Printer.  
      RR := Rect(0, 0, bmp.Width*Scalex, bmp.Height*scaley);  
            Canvas.StretchDraw(RR, bmp);  
      // An die Auflösung anpassen  
      // Stretch to fit  
 
    finally  
      EndDoc;   //Methode EndDoc beendet den aktuellen Druckauftrag und schließt die  
      // Textdatei-Variable.  
      // Steht in finally um auch bei Abbruch des Druckauftrages Papierausgabe  
      // sicherzustellen  
    end;  
  end;


Habe diese Code bloß da erkennt er nicht

ausblenden Delphi-Quelltext
1:
 bmp:=Tgraph.GetFormImage;					


Kann mir wirklich keiner helfen?
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 17.01.08 16:52 
Da es sich vermutlich bei "TGraph" um eine Klasse bzw. Objekt handelt und dieses so nicht verwenderbar ist, würde ich Dir vorschlagen zunächst eine Instanz zu erzeugen.
Zudem, woher stammt der Code ? Entsprechende Unit für TGraph eingebunden ? Welche exakte Fehlermeldung erscheint ?

Gruß
Marc