Hi,
Im having word document in the Server Machine. While im trying to open the file in Client Machine file is opening in Server only. I need to open in the client only. This is an ASP.NET project done in VB.NET.
The Code i used to Open the file---------------------------------------------Dim oWordApplic As New Word.ApplicationClassDim oDoc As Word.DocumentDim strFileName As String = ConfigurationSettings.AppSettings("ServerWordDocu") + ReportName + ".doc"Dim fileName As String = strFileNameoWordApplic.Visible = TrueoDoc = oWordApplic.Documents.Open(fileName)oDoc.Activate()----------------------------------------------------------------
Another Code I Used is Hyperlink. Just i give the link to hyperlink but its opening in readonly format. so i cant able to do any modification. Because i have to save the file in the server.
HyperLink1.Text = Name + ".doc"HyperLink1.NavigateUrl = ConfigurationSettings.AppSettings("WordDocu") + Name + ".doc"----------------------------------------------------------------
Another type i Checked its also opening in readonly.
Dim filename As String = ConfigurationSettings.AppSettings("WordDocu") + ReportName + ".doc"Response.ContentType = "application/ms-word"Response.AddHeader("ContentDisposition", "attachment;filename")Response.WriteFile(filename)
Give me the solution i need it very urgent to implement in project.
Thanks in advanceSenthil V.