How can access to Document Library - InfoPath Dev
in

InfoPath Dev

How can access to Document Library

Last post 11-03-2005 10:19 AM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-26-2005 03:18 PM

    How can access to Document Library

    How can I access to a Document Library that is created in SharePoint from a c# control...

    I have the next code:


    ofdEnlazar.Filter = "Todos los archivos (*.*)|*.*";
    ofdEnlazar.InitialDirectory = "http://192.168.1.4/Documentos%20Recibidos/";
    ofdEnlazar.RestoreDirectory = true;

    if(ofdEnlazar.ShowDialog() == DialogResult.OK)
    {
    string splitString = ofdEnlazar.FileName;
    char[] sep = {'\\'};
    string [] split = splitString.Split(sep);
    lblFileName.Text = split[split.Length-1];


    www.EcuadorDeCerca.com
  • 10-28-2005 10:40 PM In reply to

    Re: How can access to Document Library

    Hi,
    What do you mean by C# control? Does this related to InfoPath?

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 11-01-2005 02:12 PM In reply to

    Re: How can access to Document Library

    yes, I build a c# control that is used in a InfoPath Form, but the control try access tu a SharaPoint Document Library....

    www.EcuadorDeCerca.com
  • 11-03-2005 10:19 AM In reply to

    Re: How can access to Document Library

    Hi again,
    I'm still a little confused. You don't need a "control" to access ShP Doc Lib. Just use the SharePoint list adapter data connection (no code required) or for more extensive support write code to use the WebDAV protocol. Also, this is documented in chapter 9 of our book.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.