This code works great for me to open a pdf however, what I want to do is not open it but have it saved as a new pdf. For instance when the operator chooses MYPDF from the form, it would not open it per se, rather it will copy it, create the temp.pdf and then open TEMP.PDF. I want to do this to preserve the templates from them changing anything on it. Is this doable?
#define SW_NORMAL 1
DECLARE LONG ShellExecute IN SHELL32.DLL ;
LONG nWinHandle, STRING cOperation,;
STRING cFileName, STRING cParameters,;
STRING cDirectory, INTEGER nShowWindow
ShellExecute(0, "open", "S:\shared files\bols\MYPDF.PDF", "", "", SW_NORMAL) && I want to copy and save as TEMP.PDF
#define SW_NORMAL 1
DECLARE LONG ShellExecute IN SHELL32.DLL ;
LONG nWinHandle, STRING cOperation,;
STRING cFileName, STRING cParameters,;
STRING cDirectory, INTEGER nShowWindow
ShellExecute(0, "open", "S:\shared files\bols\MYPDF.PDF", "", "", SW_NORMAL) && I want to copy and save as TEMP.PDF