http://www.perlmonks.org?node_id=951851


in reply to Re: win32::ole and MS Office 2010 over cgi
in thread win32::ole and MS Office 2010 over cgi

But it works with Windows Server 2003 and Office 2003
  • Comment on Re^2: win32::ole and MS Office 2010 over cgi

Replies are listed 'Best First'.
Re^3: win32::ole and MS Office 2010 over cgi
by furry_marmot (Pilgrim) on Feb 05, 2012 at 06:36 UTC
    I'm not familiar with Server 2008 OR Office 2010...buuut...you might check a couple of things. First, if you installed Office with VBA, check the docs for changes. Running Office from VBA should be almost identical from running it via Perl and OLE, but for some syntax changes. You probably know that a quickstart to automating a task in Office is creating a VBA macro, and then translating it to Perl. Anyway, another possibility is that it's not Word.Application anymore. It's only a shot in the dark, but I hope it helps.

    --marmot

      But it works using the command line or Perl editor, even I tested the script sceduled under the same privileged user as Apache service runnung. All is OK. CGI is the problem.

        But it works using the command line or Perl editor, even I tested the script sceduled under the same privileged user as Apache service runnung. All is OK. CGI is the problem.

        No, restrictions for services are the problem. Read my posting again.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^3: win32::ole and MS Office 2010 over cgi
by Anonymous Monk on Feb 05, 2012 at 06:25 UTC

    But it works with Windows Server 2003 and Office 2003

    Microsoft actively improves windows and office, check the changes files on msdn