Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#2

AW: Adobe Acrobat via OLE oder Alternativen

  Alt 4. Jul 2014, 09:29
Print a PDF file with dialog: AcroRd32.exe /P PdfFile
Print a PDF file silently: AcroRd32.exe /N /T PdfFile PrinterName [ PrinterDriver [ PrinterPort ] ]

Hinzugefügt:
Open a PDF file in a new instance of Adobe Reader: AcroRd32.exe /N PdfFile

Delphi-Quellcode:
procedure TForm1.ButtonClick(Sender: TObject); //PRINT
var fn : String;
begin
fn:=ExtractFilePath(ParamStr(0)) +'test-1.pdf';
ShellExecute(0, 'open','acrord32', PChar('/p /h ' + fn), nil, SW_HIDE);
end;

Geändert von hathor ( 4. Jul 2014 um 11:12 Uhr)
  Mit Zitat antworten Zitat