#1 2011-02-28 14:24:03

fantoni
Member
Registered: 2011-02-25
Posts: 16

Lunch default pdf reader program

Hello,
how to execute  default PDF reader program after create a pdf file with pdf engine?

thanks to all ..

Offline

#2 2011-02-28 16:53:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Lunch default pdf reader program

See how it's implemented in SQLite3Pages, when the LaunchAfter parameter is TRUE:

function TGDIPages.ExportPDF(aPdfFileName: TFileName; ShowErrorOnScreen: boolean;
  LaunchAfter: boolean): boolean;
 (...)
      PDF.SaveToFile(PDFFileName);
    finally
      PDF.Free;
    end;
    if LaunchAfter then
      ShellExecute(Application.MainForm.Handle,'open',Pointer(PDFFileName),
        nil,nil,SW_NORMAL);
  (....)

Offline

#3 2011-02-28 17:34:13

fantoni
Member
Registered: 2011-02-25
Posts: 16

Re: Lunch default pdf reader program

thanks ..

Offline

Board footer

Powered by FluxBB