Autor Beitrag
Adrian
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 314



BeitragVerfasst: Mo 17.11.03 11:50 
Servus!

Jetzt habe ich das Forum durchwühlt und die Online-Hilfe gequält, aber es klappt immer noch nicht.
Ich lasse mir Grafiken darstellen,die man auf Wunsch auch ausgedrucken kann. Das Ganze sieht momentan so aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.DruckenClick(Sender: TObject);
begin
  PrintDialog1.Execute;
  with Printer do
  begin
    BeginDoc;
    Printer.Canvas.StretchDraw(Rect(0,0,Image1.Width,Image1.Height),Image1.Picture.Graphic);
    EndDoc;
  end;
end;

Effekt: Jedesmal kommt ein wunderschönes, weißes Blatt Papier aus dem Drucker. Hat zwar auch was für sich, entspricht aber nicht ganz meinem Programmwunsch.
Warum, warum, warum? Bin bald soweit :autsch:

Gruß,

Adrian


Zuletzt bearbeitet von Adrian am Mo 17.11.03 16:12, insgesamt 1-mal bearbeitet
Currywurst
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50

Win XP Pro
D3 Pro, D5 Std, D6 Pers
BeitragVerfasst: Mo 17.11.03 12:44 
schau hier unter "printing bitmaps" homepages.borland.co...ary/Delphi/Printing/ (ca anfang letztes drittel der seite)

und wenn es keine bitmap is, mach eine draus :-)
Adrian Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 314



BeitragVerfasst: Mo 17.11.03 16:12 
Servus currywurst!

Prima, es klappt bestens!
Jetzt muß ich nur noch den Code begreifen...

Gruß,

Adrian