Hi,
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
%>
EDIT1: Still no progress, trying word automation came up with loads of problems which can be seen here: http://stackoverflow.com/questions/3863012/server-word-automation-permissions-some-answers-and-some-questions, answers are most welcome :)