Hi,
When one of our clients tries to open a docx file from our app, it crashes. Same with doc or docm. Other clients don't have the problem.
No problem with xlsx files.
To open files, we use a windows API "ShellExecuteA".
Laurent
Hi,
When one of our clients tries to open a docx file from our app, it crashes. Same with doc or docm. Other clients don't have the problem.
No problem with xlsx files.
To open files, we use a windows API "ShellExecuteA".
Laurent
The user experiencing this issue does have MS Word installed, correct?
Can the user open/use Regedit? If so, check:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithList
and
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.docx
to see if the subkeys/values look "normal" (check against your own settings or a PC that is working properly).
Can you open the files from a File Manager window? From a CMD line? From another app?
This sounds more like an OS related problem since it's occurring on multiple file types. It might also be related to a DLL Being loaded by PB and a DLL by the same name, but different version, being used by the DOCX handler.
What's the specific error you're seeing?
Does the same happen if you use a totally different type of file? (maybe .txt to be opened with notepad)
Hi Laurent;
Other than the "ShellExecuteA" command should be "ShellExecuteW" as PB is Unicode that should work OK either way. However, you might want to give the O/S time to complete the App Start-u process by adding a Yield() command right after the ShellExecute call. HTH
Regards ... Chris