DSO file wrong pagecount

5 pts.
Tags:
ASP
dsofile
VB script
Visual Basic
Visual Basic Script
Hi, (1st post so be gentle :) )
I am using dsofile.dll to get pagecount from word documents, all i need at this point is pagecount and only word documents at this time.
for some documents the pagecount returns as 0 (or invalid in general maybe?) and therefore i'm in need of a solution or a different approach.
word automation is a last resort as it is considered unsafe and will otherwise overload the server.
any ideas ?
CODE:
<%
dim dso : Set dso = Server.createObject("DSOFile.OleDocumentProperties")
dso.open(wordFilePath)
response.write dso.summaryProperties.pageCount
dso.close()
set dso = nothing
%>


Software/Hardware used:
asp, dsofile, vbscript, windows,IIs
ASKED: September 21, 2010  11:30 PM
UPDATED: September 22, 2010  1:04 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following