"GTN170777" <GT*******@discussions.microsoft.comwrote in message
news:4D**********************************@microsof t.com...
Hi Guys,
Not a problem with my code, but something I would like to add, (ASP
VBScript) at the moment I have a form where a user uploads their details
including a document (Doc, PDF, TXT, Docx) The document is uploaded to a
folder on the server with the address being stored in the database and I'm
tracking the user id through sessions.
What I would like to do after the upload is redirect to a blank page,
where
some script extracts the data from the document and inserts it into
another
field on the database associated with the user id, I think this may be
called
parsing, but I'm at a complete loss, I don't suppose you guys have any
ideas
on this do you.
I think this would probably make a really neat little extension also...
Given that Classic ASP is no longer being developed, you are unlikely to get
MS to consider any extensions to the framework. Also, how you obtain the
contents of the file will differ enormously. A simple text file is easy.
You just use the FileSystemObject to gain access to the text. A PDF is
totally different, and there are a number of third party components
available for messing around with PDFs. Microsoft haven't even provided a
native way to deal with PDFs in the .NET framework, which is the technology
they are now devoting all their development time on. You have to dig around
for third party stuff there too.
We use a number of third party components for text parsing, and some
conditional code to identify the filetype, and then choose the component
accordingly. However, they wouldn't be of any use to you as they are
employed in a Delphi forms app.
--
Mike Brind
Micrisift MVP - ASP/ASP.NET