Autor Beitrag
Ace
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WinXP
Delphi 7 Pers. / Turbo Delphi.NET
BeitragVerfasst: Do 08.03.07 09:33 
Ich möchte beliebige Dateien wie Word-, PDF- oder Textdokumente drucken. Ich möchte sie weder öffnen noch einlesen, nur drucken über den Standarddrucker, so als würde ich im Explorer die rechte Maustaste auf die Datei machen und Drucken anklicken. Kennt da jemand eine Möglichkeit?
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 08.03.07 09:46 
Shellexecute mit PRINT

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Ace Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

WinXP
Delphi 7 Pers. / Turbo Delphi.NET
BeitragVerfasst: Do 08.03.07 10:08 
Jetzt habe ich es auch gefunden :) aber danke.

ausblenden Quelltext
1:
ShellExecute(Application.Handle, 'print', PChar('MeineDatei.doc'), nil, nil, 0);					


ShellAPI in den uses nicht vergessen.