Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Background:
A few weeks ago my home office was hit by lightning and most of my equipment was zapped, phone, modem, router and computer. After a few tears I replaced the stuff and to my joy the HD from the old box was accessible and I could copy data and scripts easily.

I reinstalled the application software like perl, Office, editor, etc on the new harddrive which has MS XP Pro SP2 preinstalled, same as on the old box which had been upgraded to SP2 a couple of months ago. During this quest I have reinstalled perl and Office just to make sure.

I have a rather large application written in Perl which uses Win32::OLE to control MS Word. The app generates reports with tables in them, it IS pretty slow due to OLE and Word, neither one a speed demon. The application draws a lot a CPU, nearly 100 % for several minutes, when Word does it's chores.

Problem:
However on the new computer, which is a few times more powerful compared to the old one, the parts of the application which deals with Word is running very slowly, in the order 10 times slower. The CPU-load is between 0 and 5 %.

Stuff like saving to disk and printing from Word seems OK. I think that it is the marschalling between perl and Word which has gone awry. Some new security feature or what ?

I have been searching google, microsoft, activestate but no avail. This is kinda my last straw ... any ideas ?


In reply to MS Word over Win32::OLE "suddenly" extremely slow by guha

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found