Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 May : Print jpg with ShellExecute?

www.cryer.info
Managed Newsgroup Archive

Print jpg with ShellExecute?

Subject:Print jpg with ShellExecute?
Posted by:"Danny" (danyadl..@yahoo.com)
Date:27 May 2006 02:33:44

Hi Everyone,

I'm trying to execute the default "Print" action for jpg files, using:
ShellExecute(FrmMain.Handle, 'print',
   p'c:\temp\1.jpg', nil,
   c:\temp\', SW_SHOWNORMAL);

But I get only the "Open" action...
What I'm looking for is to execute the default-application for PRINTING jpg files.

How can I force the Print-action to be executed??
Should I check the registry for the jpg print command?

Thanks in advance,
Danny

Replies:

www.cryer.info
Managed Newsgroup Archive