Hi,
We have a requirement where we want to open files directly from in Ax. The files we want to open have different file types (PDF, PNG, ...).
I found and used the following command to open files:
WinAPI::shellExecute(_fileName,'','',#ShellExeOpen);
This command seems to work fine for certain files (like PDF) but it doesn't work for other types (like PNG for example).
When i open the file directly from windows, the PNG file opens in Paint. But when i open it with the command stated above, i get the error:
"The file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel."
I don't understand this message, since the type PNG is already linked to a default program and it opens fine when i do it in windows file explorer.
Can i somehow do the same from in Ax?
*This post is locked for comments