- Christopher Craft
- PowerBuilder
- Saturday, 30 September 2023 02:54 PM UTC
PB 2022 1900
I have a window that shows attached files for a transaction using the chromium WebBrowser. This window will retrieve the file from the database, write it out to ..AppData\Local\Temp\Famous\Doc.pdf and then I fire the Navigate using that exact same entry. I have recently been notified that some of our builds are not displaying the files in the browser. The odd part is the file is correctly created in that directory but the Navigate fails to load it. I know that when connecting to a Remote Desktop session, Windows will create a directory under Temp with your session id (..AppData\Local\Temp\6). Could this be causing the browser to get confused only on certain servers?
Another thought would be to use the temp session id structure for Remote Desktop. I am currently calling SHGetSpecialFolderPathW with folder ID of 28 to get the AppData\Local directory then adding 'Temp' but maybe I should be using GetTempPathW instead? (Although I thought there were some potential issues with this as well)
Thanks again for your input on this,
Chris Craft
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.