Re: can a .NET app get access to a shared doc in SPS?
From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 09/10/04
- Next message: Jeroen De Brabander: "Re: Usercontrol in webpart"
- Previous message: Nick Malik: "Re: can a .NET app get access to a shared doc in SPS?"
- In reply to: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Sep 2004 06:30:31 GMT
So, here is what you do.
You download the document library event handler toolkit:
http://www.microsoft.com/downloads/details.aspx?FamilyId=4B2C2F1B-D74A-482A-903A-45BB44C5DEC4&displaylang=en
Then you look at the code. You will find an excellent, fully debugged,
example of how to impersonate a user in code, and how to call Sharepoint to
get a file out. This will get you started. Then you google the SPFile
object and look for the method (whose name I forgot at the moment) that will
retrieve a document as a byte array.
This should move you further along.
HTH,
--- Nick
"jason shohet" <jasonshohet@gmail.com> wrote in message
news:276d0cc9.0409091702.7c9f6c38@posting.google.com...
> Yes Nick this helps, this is great help. The part i'm stuck on is how
> to get the ASP.NET to impersonate a domain account that has write
> access to that document library... In ASP.NET, I can store a document
> as a file on a drive somewhere. But Sharepoint is storing it in its
> database somehow, where do I point (ie using UNC) to save that
> document. All you mentioned sounds great & possible, but i'm sure the
> devil is in the details for newbies like us :)
>
> -- jason shohet
>
> > I would suggest that you provide an ASP.NET app that allows the user to
look
> > up their record in Oracle. When they find it, they upload a document to
the
> > asp.net site which will catch the upload, open WSS, and store the
document
> > using the primary key from Oracle into a document library in Sharepoint
> > (e.g. the user isn't aware that they are using sharepoint at all).
Since
> > your ASP.NET app would impersonate a domain account that has write
access to
> > that document library, WSS would allow the user to upload the document
via
> > the ASP.NET app, but not directly.
> >
> > Then, when your app shows data from Oracle, provide the link directly to
the
> > Sharepoint library using the primary key value from Oracle.
- Next message: Jeroen De Brabander: "Re: Usercontrol in webpart"
- Previous message: Nick Malik: "Re: can a .NET app get access to a shared doc in SPS?"
- In reply to: jason shohet: "Re: can a .NET app get access to a shared doc in SPS?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|