in reply to html2doc server connection dies early

It looks to me like asking Word to open the document is failing, here:
my $doc = $word->{'Documents'}->Open("$file") or next; #TODO: log +error
The debug output pretty much stops after that. I can't explain why it still prints Done with connection, though, unless the code you're actually running is slightly different than what you posted.

I would add that error logging mentioned in the TODO, and also some error checking after you close statements (at least on Unix, some errors aren't reported until the file is closed).

Replies are listed 'Best First'.
Re^2: html2doc server connection dies early
by IdleResonance (Acolyte) on Oct 23, 2005 at 03:38 UTC
    I am certain this is not where it is failing for me. The console always shows output generated past this line. I just copied in the file directly. I'll try to add some more logging though. Thanks.