AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

PDF Datei ausdrucken

Ein Thema von Dumpfbacke · begonnen am 26. Mär 2017 · letzter Beitrag vom 3. Apr 2017
 
nahpets
(Gast)

n/a Beiträge
 
#3

AW: PDF Datei ausdrucken

  Alt 26. Mär 2017, 17:28
Würde das über ShellExecute (oder entsprechendes lösen):

AcroRd32.exe <filename>

Code:
The following switches are available:

    /n - Launch a new instance of Reader even if one is already open
    /s - Don't show the splash screen
    /o - Don't show the open file dialog
    /h - Open as a minimized window
    /p <filename> - Open and go straight to the print dialog
    /t <filename> <printername> <drivername> <portname> - Print the file the specified printer.
http://stackoverflow.com/questions/6...line-reference

http://stackoverflow.com/questions/1...s-command-line

Eventuell geht es so in der Art (ungetestet):
Delphi-Quellcode:
function PDFPrint(A_PDF_FileName : String; A_Printer : String) : Integer;
begin
  // Statt SW_HIDE auch SW_MAXIMIZE, SW_MINIMIZE, SW_SHO*WNORMAL möglich
  Result := ShellExecute(Application.Handle,'open','"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"',PChar(Format('/t %s %s',[A_PDF_FileName,A_Printer])),'',SW_HIDE);
end;
Von der Kommandozeile funktioniert dashier unter Windows XP:
Code:
"c:\programme\adobe\reader 11.0\reader\AcroRd32.exe" /t c:\Ueberweisungsvorlage.pdf Kyocera
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:05 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz