I just switched to PB2019 R3 from R2.
Our app is a simple client server app.
Now when i try to use OLE to Word, it fails on the .ADD
ole_1.Documents.Add(as_template)
We are using 64 bit Microsoft Office - Word but that doesn't seem to be the problem since the older Test app and Production App on the same machine (built with the 2019 R2) open the word doc successfully.
So it seems the only difference is the R3.
Has anyone else seen this? Is there a work-around or will I have to go back to PB 2019 R2, if that's the problem?
Thank you,
Doug
I too am using ConnectToNewObject and the ConnectToObject functions. I use Open to open a template document if I want to modify the template and I use Add to open a new document based upon that template...but I can currently use both. I am also able to connect with Excel as well without any issues in PB2019R3.
In the code you provided above, I'm thinking that should be "Documents" versus "Document" as I don't believe there are Open or Add methods for the Document object.
I'm curious to see what Appeon believes the bug to be but regardless, glad you have a work around and thanks for the update.
Regards,
Mark