I'm having trouble with updating general fields (Title, Autor Suject, etc.)
in the summary of documents located on our Intranet. I've downloaded the
FilePropDemoVB7 example (http://support.microsoft.com/?kbid=224351) and even
tried modifing it to make the changes to my local files and I get the same
error on both the original and the ASP.net version. Here is an example of my
code that's tring to make a change:
Private Sub btnAccept_Click (ByVal sender As Object, ByVal e As
System.EventArg s) Handles btnAccept.Click
Dim oSummProps As DSOFile.Summary Properties
Dim fi As New FileInfo(Sessio n("sFile"))
m_oDocument = New DSOFile.OleDocu mentPropertiesC lass
Try
m_oDocument.Ope n(fi.FullName, False,
DSOFile.dsoFile OpenOptions.dso OptionOpenReadO nlyIfNoWriteAcc ess)
oSummProps = m_oDocument.Sum maryProperties
oSummProps.Titl e = CType(mpHoriz.F indControl("txt Title"),
TextBox).Text
oSummProps.Auth or = CType(mpHoriz.F indControl("txt Author"),
TextBox).Text
oSummProps.Subj ect = CType(mpHoriz.F indControl("txt Subject"),
TextBox).Text
oSummProps.Comp any = CType(mpHoriz.F indControl("txt Company"),
TextBox).Text
oSummProps.Comm ents = CType(mpHoriz.F indControl("txt Comments"),
TextBox).Text
m_oDocument.Sav e()
Catch ex As SystemException
Response.Write( ex.ToString)
Response.End()
Finally
m_oDocument.Clo se()
m_oDocument = Nothing
End Try
OpenDocumentPro perties(fi)
End Sub
I've given Full Access rights to the folder where the changes are to be made
but that hasn't made a difference. But what's strange is that when I use the
modified demo application it should work for my local files but it also comes
up with the "Access Denied" error.
Is there something I'm missing?