I am using the free version and am trying to save a document to a certain folder in asp.net.
It wont save to the folder I choose, it instead always saves to the My Documents folder.
This is my code:
'Create word document
Dim document_Renamed As New Document()
'load a document
document_Renamed.LoadFromFile(Server.MapPath(("~/App_Data/FindAndReplace.doc")))
document_Renamed.Replace(Me.TextBox1.Text, Me.TextBox2.Text, True, True)
document_Renamed.SaveToFile(Server.MapPath(("~/App_Data/Sample.doc")), FileFormat.Doc, Response, HttpContentType.Attachment)
It will load a document from the App_Data folder but will not save to that folder.
What am I doing wrong?
Paul