I am writting a program that allows us to load all our old files from our archives and exports them out as PDFs and text files to load into our SQL database so we can search everything. I have files dating back to Corel 5 which dont open in Corel 2019 so I loaded Corel X5 on my computer as well. I have several questions.
#1, is there any API call to get the version of the File
#2 is there a way to recurse through the pages of the document do a select all on that page and get the page size.
#3 once i have the page size I will want to change the document paper size to match so that when it exports it doesnt cut off.
Does anyone know of such a method or can you point me in the right direction.
Thanks
Robert
Regarding getting file version (Program name) I've found these on StackOverflow which might help get this info:
https://stackoverflow.com/questions/50262556/vba-get-all-file-properties
https://stackoverflow.com/questions/5651890/using-vba-to-get-extended-file-attributes
One of these might give you something you could adapt to get the Program Name.
I've quickly checked a couple of files on my own network and checked these properties and they show different versions depending on which version the file was saved in.