Board index » delphi » opening files from buttons

opening files from buttons

Need some hlep with need to open a *.pdf and *.msi for and install interface
can not seem to get it to work

Thanks
Fred

 

Re:opening files from buttons


uses shellapi;

shellexecute(handle,'open','c:\windows\desktop\thepdfyouwanttoopen.pdf',nil,
nil,sw_shownormal);

Quote
"Fred Peacock" <fpeac...@pcprosolutions.com> wrote in message

news:KP7L8.168648$L76.254918@rwcrnsc53...
Quote
> Need some hlep with need to open a *.pdf and *.msi for and install
interface
> can not seem to get it to work

> Thanks
> Fred

Re:opening files from buttons


Thanks Nicholas
That works perfect

Fred

Quote
"Nicholas Sherlock" <n_sherl...@hotmail.com> wrote in message

news:adj58o$k37$1@lust.ihug.co.nz...
Quote
> uses shellapi;

shellexecute(handle,'open','c:\windows\desktop\thepdfyouwanttoopen.pdf',nil,
Quote
> nil,sw_shownormal);

> "Fred Peacock" <fpeac...@pcprosolutions.com> wrote in message
> news:KP7L8.168648$L76.254918@rwcrnsc53...
> > Need some hlep with need to open a *.pdf and *.msi for and install
> interface
> > can not seem to get it to work

> > Thanks
> > Fred

Re:opening files from buttons


Other readers might like to know that some versions of Acrobat and
Delphi produce apps that won't open pdfs if the app is run from the IDE
but will if run stand alone.

Andrew

Other Threads