Hello! I am new to using RPA and Studio and I just had a general question. I am currently converting multiple word documents into PDF format and was wondering if there was a limit to how “old” the document can be. I have created the code for it, but noticed that my documents are “.doc” instead of “.docx”, and cannot work through the code that I have set up. I also noticed that the document type is “Microsoft Word 97”. I see that the program is attempting to work through one document, but won’t continue forward. Is this because the document is at an older version? If there is a way around this issue, I would really cherish any insight. If there are different coding steps that I am missing, I would also really appreciate a step-by-step breakdown!
Good morning! Thank you very much for the welcome!
I do have a Word Application Scope used within my code, which I guess stumps me even more. I am converting multiple files, which is why I added in a “For Each”.
Here is the code that I have written out in a very broad term.
For Each: file in Files
Body:
Assign: FileName = Path.GetFileNameWithoutExtenstion(file)
Word Application Scope: file
Do:
Save Document as PDF: File path to save as "PDFPath+FileName+".pdf"
The issue is that the code begins, but never actually converts or goes through the entire list. I have made sure that the variables are of the folder names, and not of just one document.
Hopefully this can help a little more. I appreciate your time!
Can you try killing word using Kill Process Activity once it converts the word to pdf. Pass WINWORD in the process name property of Kill Process Activity. Check how it goes