Sorry guys,
I posted my comments in your other question.
Better delete the other one.
BTW, My comment is more or less the same as macorts suggested, only written in a little procedure.
Anyway, I'm going to post mu procedure here too :
procedure PrintPDF( strPDFName: String );
var
strApp, strPath, strPar : String;
begin
if not FileExists( strPDFName ) then
begin
MessageDlg('File does not exist : ' + strPDFName, mtError, [mbOK], 0);
end
else
begin
strApp := 'C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe';
strPath := ExtractFileDir(strPDFName)
strPar := '/h /p ' + strPDFName;
ShellExecute(0, PChar('Open'), PChar(strApp), PChar(strPar), PChar(strPath), SW_HIDE );
end;
end;
Best regards,
The Mayor.
Main Topics
Browse All Topics





by: mocartsPosted on 2003-02-18 at 02:53:45ID: 7972976
do you tried:
ShellExecute(0, nil, 'acrord32.exe', '/p /h C:\1.pdf C:\2.pdf', nil, 0);
third parameter you can, of course, find with FindExecutable(..)
wbr, mo.