1. Vijay Gopalakrishnan
  2. PowerBuilder
  3. Saturday, 25 July 2020 02:02 AM UTC

Hi, 

I am using Appeon PowerBuilder 2019 R2 version, I built my exe and pbd with 64 bit Compilation. I am running as a batch program. My code uses ole object which will open MS Word application. I have installed Word 2016 in my machine.  My code will look for a document from a folder which is .docx and will open the document and print the values from a data window in the document.

The functionality works fine with Old PowerBuilder 11.5 with Word 2013. But it is throwing error in Appeon PowerBuillder 2019 R2 Version with Word 2016.

Any possible solution to this issue? Any help will be highly appreciated.

 

Thanks and Regards,

VJ 

Roland Smith Accepted Answer Pending Moderation
  1. Saturday, 25 July 2020 16:04 PM UTC
  2. PowerBuilder
  3. # 1

Your PowerBuilder and Office applications must be of the same bitness if you want them to interact in any way.

Comment
  1. mike S
  2. Saturday, 25 July 2020 20:29 PM UTC
You can use ole to access 64 bit office applications with 32 bit powerbuilder. At least outlook and excel, so i would assume word as well. no idea about going from 64bit to 32bit office.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 25 July 2020 15:23 PM UTC
  2. PowerBuilder
  3. # 2

Hi VJ;

   I believe that MS-Office was not 64 bit until Office365 came out. Yet, Office365 has two install options - 32 or 64 bit client variants. So if your using OLE, you'll need to be bit aware.

Regards.... Chris

Comment
  1. Miguel Leeuwe
  2. Saturday, 25 July 2020 22:07 PM UTC
hi Chris,

I think that Office 2003, 2007 and 2010 already had 64 bit versions.

regards
  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 25 July 2020 23:08 PM UTC
I was talking about the client - not the server. ;-)
  1. Helpful
  1. Miguel Leeuwe
  2. Monday, 27 July 2020 18:21 PM UTC
Ah okay, anyway, I just came here to correct myself as I was really only sure about Office 2010 allowing 64 bit client. The others I googled them.

Cheers!
  1. Helpful
There are no comments made yet.
Vijay Gopalakrishnan Accepted Answer Pending Moderation
  1. Saturday, 25 July 2020 15:10 PM UTC
  2. PowerBuilder
  3. # 3

word 2016 is 32 bit and I am getting unable to open the document message.

Comment
  1. Armeen Mazda @Appeon
  2. Saturday, 25 July 2020 16:56 PM UTC
You need to compile as 32-bit not 64-bit.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Saturday, 25 July 2020 14:48 PM UTC
  2. PowerBuilder
  3. # 4

Is Word 2016 also 64-bit?  What is the error message? 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.