CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



zuhrs
New User

Apr 16, 2014, 1:45 AM

Post #1 of 5 (9061 views)
Remote procedure call failed when opening a word document Can't Post

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

Post #2 of 5 (9060 views)
Re: [zuhrs] Remote procedure call failed when opening a word document [In reply to] Can't Post

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

Post #3 of 5 (9053 views)
Re: [Laurent_R] Remote procedure call failed when opening a word document [In reply to] Can't Post

Renaming does not work.


BillKSmith
Veteran

Apr 16, 2014, 9:25 PM

Post #4 of 5 (9051 views)
Re: [zuhrs] Remote procedure call failed when opening a word document [In reply to] Can't Post

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

Post #5 of 5 (9039 views)
Re: [zuhrs] Remote procedure call failed when opening a word document [In reply to] Can't Post

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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives