D
Donald Nova
I am building a system that allows a user to upload a MS Word file, using a
HtmlInputFile control, and by using
HTTPPostedFile.SaveAs("c:\uploads\myFile.doc") I can save the Word files to
disk.
I can then do the following to open and analyse the MS Word File from the
harddisk:
Dim myDoc as Word.Document
Dim wdApp As New Word.Application()
Dim pathName As String = "c:\uploads\myFile.doc"
myDoc = wdApp.Documents.Open(FileName:=pathName)
etc etc.....
However, what I really want to do is avoid having to save the file to disk
first.
So the question: Is there a way to open the uploaded HTTPostedFile MS Word
file while it is still in memory?
Any help would be greatly appreciated!
Cheers
Donald
HtmlInputFile control, and by using
HTTPPostedFile.SaveAs("c:\uploads\myFile.doc") I can save the Word files to
disk.
I can then do the following to open and analyse the MS Word File from the
harddisk:
Dim myDoc as Word.Document
Dim wdApp As New Word.Application()
Dim pathName As String = "c:\uploads\myFile.doc"
myDoc = wdApp.Documents.Open(FileName:=pathName)
etc etc.....
However, what I really want to do is avoid having to save the file to disk
first.
So the question: Is there a way to open the uploaded HTTPostedFile MS Word
file while it is still in memory?
Any help would be greatly appreciated!
Cheers
Donald