Home: Perl Programming Help: Intermediate:
Remote procedure call failed when opening a word document



zuhrs
New User

Apr 16, 2014, 1:45 AM


Views: 10995
Remote procedure call failed when opening a word document

I have a perl script(in win 7 32 bit) to open a word document as follows:

$doc = $word->Documents->Open($file, 0, 1)

This gives an error message for word files with .doc extension( .docx files opens without error)

The error message is as follows:
win32::ole<0.1709> error 0x800706be : The remote procedure call failed in METHOD/PROPERTYGET "open"

Note: the same script is able to open doc and docx file in Win 7 64 bit OS. Any help is appreciated. Thanks in advance

Code


Quote


Quote



Laurent_R
Veteran / Moderator

Apr 16, 2014, 2:52 AM


Views: 10994
Re: [zuhrs] Remote procedure call failed when opening a word document

I don't know much about Word file formats, so this might actually be a silly question, but does it work if you first rename the file?


zuhrs
New User

Apr 16, 2014, 9:08 PM


Views: 10987
Re: [Laurent_R] Remote procedure call failed when opening a word document

Renaming does not work.


BillKSmith
Veteran

Apr 16, 2014, 9:25 PM


Views: 10985
Re: [zuhrs] Remote procedure call failed when opening a word document

I suspect that the two systems are using different verions of the word module.
Good Luck,
Bill


Laurent_R
Veteran / Moderator

Apr 17, 2014, 2:09 AM


Views: 10973
Re: [zuhrs] Remote procedure call failed when opening a word document

Well, the only option that I can think of is to check on the CPAN for other versions of the module which you use. There might be one for 32-bits platforms that can open both Word formats.