Hi - I owuld like to use the command-line option /PF to create a PDF from an access /VBA application using the autosave mode but also have the option to create PDF's manually not using the autosave mode.
I manged to open PDF creator in either autosave or non autosave mode by using two opton.ini files and the lines like:
shell("c:\\program pdfcreator\\pdfcreator.exe /OptionsFile"C:\\auto.ini") or
shell("c:\\program pdfcreator\\pdfcreator.exe /OptionsFile"C:\\default.ini")
This works fine for the first instance but once created further calls dont change the options - i.e. I wanted to change the mode to auto, create the PDF, change the mode back to default:
shell("c:\\program pdfcreator\\pdfcreator.exe /OptionsFile"C:\\auto.ini")
shell("c:\\program pdfcreator\\pdfcreator.exe /PF"C:\\document.doc")
shell("c:\\program pdfcreator\\pdfcreator.exe /OptionsFile"C:\\auto.ini")
But I cant get this to work - how can I change the option file once loaded or close the program from the commandline so I can reopen it in the correct mode?
Thanks