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


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.



Relevant Pages

  • Re: can a .NET app get access to a shared doc in SPS?
    ... A shared document in WSS is available by clicking a link. ... I would suggest that you provide an ASP.NET app that allows the user to look ... using the primary key from Oracle into a document library in Sharepoint ...
    (microsoft.public.sharepoint.portalserver.development)
  • Automatic Document Upload to Sharepoint
    ... upload, tag, and publish documents to Sharepoint from a drop off point ... every vendor application to have the Sharepoint WebDAV functionality. ... we're looking for an app that will allow you to create ... does the upload and publish. ...
    (microsoft.public.sharepoint.portalserver)
  • Connecting to ODBC DB at startup
    ... Oracle tables in the table list, it asks for an id and pass. ... The problem is when I go to run a query or do anything else in the app ... Dim cnConn As ADODB.Connection ... Dim strLogin As String ...
    (comp.databases.ms-access)
  • Re: Oracle CBO / Performance Issue !!!
    ... The app is quite complex and we have experienced some ... oracle back end performance issues. ... The app schemas are also identical - ... Don't collect statistics on the tablein question or use a histogram ...
    (comp.databases.oracle.server)
  • Re: Form authentication in page viewer web part?
    ... use exsiting web site that uses form authentication in page viewer web ... SP renders Page Viewer web part as iframe that points to my web app...... ... My app renders login page. ... That is what SharePoint is doing, when the SharePoint page reloads, it ...
    (microsoft.public.sharepoint.windowsservices)