What I am trying to accomplish is to open an adobe file for the selected client so that the user can scan in information or whatever they want to do with this adobe file. What I have is this from poking around on this forum.
When I click the button nothing hapens at all. Now I know that the file doesnt exist so that may be why nothing is happening.
I guess I have a few questions.
1. IS this the way to say put the file in the directory under the working directory of the program. Which is where I would like it.
2. Is there something else I have to do to create the folder and or the file. And is so, how do I check to see if the folder / file exist to know if I need to create them before I try to open the file.
3. Any other suggestions or instruction about this sort of thing would be greatly appreciated.
bcoats
Code:
myPath = "\Data\charts\" + str(chart.key) + ".pdf"
myResult = ShellExecute(0, "Open", mypath, "", "", 1)
When I click the button nothing hapens at all. Now I know that the file doesnt exist so that may be why nothing is happening.
I guess I have a few questions.
1. IS this the way to say put the file in the directory under the working directory of the program. Which is where I would like it.
2. Is there something else I have to do to create the folder and or the file. And is so, how do I check to see if the folder / file exist to know if I need to create them before I try to open the file.
3. Any other suggestions or instruction about this sort of thing would be greatly appreciated.
bcoats