Re: ShellExecute fails when printing a document.
From: Rolf Lystad (rolf_at_invalid.invalid)
Date: 11/01/04
- Next message: Altman: "Re: Using Outlook contacts"
- Previous message: GaryZ: "Re: Code meanings for Report Format ObjType field"
- In reply to: Gon Nadiya: "ShellExecute fails when printing a document."
- Next in thread: Gon Nadiya: "Re: ShellExecute fails when printing a document."
- Reply: Gon Nadiya: "Re: ShellExecute fails when printing a document."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 23:16:42 +0100
>
> ShellExecute(lnHandle,"PRINT",lcFile,"","",1)
>
> The error message is "31,There is no association for the specified file
> type
> or there is no association for the specified action within the file type"
> But when seected to open it opens in Microsoft Outlook without a problem.
>
> When I right click on an eml file in the menu the print option is not
> shown.
> Is this is cause for this error?
Yes, it is
> Is there a way I can overcome this issue?
I suggest you check the registry before using ShellExecute.
Both to see if there is a value for ...\shell\open\ddeexec or
...\shell\open\command and to check if there is a value for
...\shell\print\ddeexec or ..\shell\print\command.
If the file cannot be printed with ShellExecute, you can inform the user
that the file will be opened instead of printed, and that the user has to do
the printing himself.
If you need further assistance, I can post code for handling this.
- Next message: Altman: "Re: Using Outlook contacts"
- Previous message: GaryZ: "Re: Code meanings for Report Format ObjType field"
- In reply to: Gon Nadiya: "ShellExecute fails when printing a document."
- Next in thread: Gon Nadiya: "Re: ShellExecute fails when printing a document."
- Reply: Gon Nadiya: "Re: ShellExecute fails when printing a document."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|