.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

bind a document library to a windows folder without code

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#
 

Is it possible to bind a SharePoint library to a windows folder, so when a file is added the folder an event is created in SharePoint?

 

Or do I have to write code to watch the folder and add it via a workflow?




View Complete Post


More Related Resource Links

When try to open a folder in a moss 2007 document library in Explorer View, the folder does not open

  

When try to open a folder in a moss 2007 document library in Explorer View, the folder does not open.

I am using IE7 and the path of the folder does not contains more than 100 characters.

Also it opening on few on the machines which has IE7.

Help.. 


Can i Map to external link from document library folder

  

HI

Is There any one know how to link document library folder is to external site 

 

Thanks


When i click on any other folder in the document library that will navigate to default view of DL?

  

Hi

I have document library with having some folder in the same ,i have displayed my library in the page as Treeview, so when i click on any of the folder in the library i need to navigate allitems.aspx page i.e default view page of the document library ,the document library having views.Suppose when i am in other view i have selected folder from library treeview folder is changing but view not navigate to default view.

pls help 

 


Sharepoint Workflow To Shoot Email Only When Folder Is Created In Document Library

  
Hi, Can anyone help me with the below issue, I am facing this from so long and didn’t figure out solution yet for the same. :( I want to send an email through SharePoint designer workflow only when a folder is created in document library (not file uploaded/updated event). Please provide me solution about how I can achieve this through SharePoint designer as don’t have enough coding acquaintance.

Querystring to determine what Document Library Folder's files to list?

  
First of all, any webpart that alllows you to list documents in a particular folder of a Document library? Second, possible to pass what folder to list via a query string to  that webpart ? Thanks.

Bind events to document library when it is viewed/opened

  
Hi, How to bind a receiver to a document library. I am not looking for ItemAdded or ItemDeleted event. Whenever the document library is viewed/opened, i want to execute a custom code. Is that possible to do in a feature deployment code? If yes, which is the event to be attached. Is there any code samples. Thank you

List lookup to document library not showing folder names

  
Hi all, I've got a Sharepoint List, which has a lookup field to a Document Library on the same site. That document library library is populated with several folders, each with several Word documents within. I want my lookup (in the List) to only display the top level folders in the document library. I managed to do that in my test environment. But in my production environment doesn't list the folder names. I've compared the settings in the two and they look identical. What could be wrong, and how to I fix it so that the folder names appear? I'm using SharePoint 2007. Thanks in advance for the help.

Windows 7, Office 2007, and WSS 3.0: Losing file path when saving to Document Library.

  
A client of ours recently purchased 5 desktops with Windows 7 and Office 2007.  They use Sharepoint to share all documents for their company. The computers that have Windows XP on them can browse the Sharepoint site, open documents (read only or edit), and chose to Save or Save As.  A new window pops open with their current file path of the Sharepoint Document Library so they can save the file in the same folder they opened it from.  I have tested this with Office 2003 and 2007 (Word and Excel) on XP and it always works. The 5 new desktops running Windows 7 cannot do this.  When a user opens a document by browsing to it from Internet Explorer and chooses to Save or Save As, they are kicked back to their last successful save point (usually My Documents or Desktop). The current work around is mapping a drive to the root Document Library directory and having them traverse through the folders to save it back in the original location. I've tried changing the Check Out save settings in Word 2007 and Excel 2007 to edit directly on the server, but I run into the same problem.  I've also made sure that IE sees the site as a Local Intranet site and Protected Mode is off. Any help would be appreciated.  Thanks in advance.

Windows Sharepoint Foundation 2010 - Document Library Settings with Reporting Services 2008 R2 in in

  
I have a client who has recently upgraded their SharePoint system to Windows Sharepoint Foundation 2010 with Reporting Services 2008 R2 in integrated mode. I have configured reporting services and am able to deploy reports to SharePoint. The client created a document library before the upgrade to WSF 2010. I need to add Report Builder 3.0 to the New Document menu and found the following article. http://technet.microsoft.com/en-us/library/bb326289.aspx "Allow management of content types?" is set to yes under the advanced document library settings. The problem is that when I try to "add from existing site content types" the reporting services content types are not in the list. I appreciate any help you can give me.

Help needed in versioning through code in document library?

  

Hi

I have a situation where i need to move the document form one library(LB1) to another library (LB2) thorugh event handler code. For documents which are not available in LB2 it is working fine but a case where document is already existing in LB2 i need to maintain the version instead , whereas my code is replacing the document already present.

Can anybody help me getting the versioning done through code?

 

Many Thanks

Kamal


K K

Is there a way to disable the Open in Windows Explorer option for a single document library (SP2010)

  
I am looking to disable the Open in Windows Explorer option for a single document library (SP2010). Can someone help me with this?

Getting parent folder of a document library within EventReceiver

  

Hello everbody,

I am trying to create an EventReceiver which gives me the parent folder for currently added documents. For this reason I created an ASPX Page which I display through a "Page Viewer Web Part" on my Sharepoint. Within this Page I can create new folders in my Document Library. This is working fine. My problem is that I want to create an EventReceiver. The event is firing and I can debug it, but my properties object seems to be missing something. I am not able to get the name of the parent folder.

Is this because I am displaying my site through a "Page Viewer Web Part"? But that would be strange because I am able to write into my document list.

public override void ItemAdding(SPItemEventProperties properties)

        {

            using (SPWeb web = properties.OpenWeb())

            {

                string url = properties.BeforeUrl.ToString();

                url = url.Substring(0, url.LastIndexOf("/"));   URL is ""

 

1) Should I i

Sharepoint Workflow To Shoot Email Only When Folder Is Created In Document Library

  

Hi,

Can anyone help me with the below issue, I am facing this from so long and didn’t figure out solution yet for the same. :(

I want to send an email through SharePoint designer workflow only when a folder is created in document library (not file uploaded/updated event). Please provide me solution about how I can achieve this through SharePoint designer as don’t have enough coding acquaintance.


Regards, Sachin


How can I send a document from one folder to another folder in the same document library in a Record

  
How can I send a document from one folder to another folder in the same document library in a Records Centre?

Conditionally Change Folder Icon in document library view (SP 2007)

  

Hi All,

How can I change the folder icon in the default document library view?  The catch is, I don't need to do this across the board, instead, I need a custom folder icon based upon the individual folder's properties.

I'm aware of the file ..\Web Server Extensions\12\TEMPLATE\XML\DOCICON.XML, but that's not what I need.

My initial thought, was to find the page that sharepoint uses as the template, find the <img> src attribute, and chnage it from

src=".../folder.gif"

to something like

src="/GetIcon.aspx?fn={folderNameHere}"

my GetIcon.aspx page would then look up the folder's properties, and return the expected .gif file.  However, I don't know which file is used.

Thanks!


Adding New Custom Folder Content Type doesn't show up on the Document Library New Menu

  

I been trying to add new custom folder content type to the document library programatically in my sandbox environment and it does show up on the document library. But, when I move same code to the almost similar configured SP2010 environment, adding new folder content type to the document library doesn't show up on the document library's new menu.

Here is the code? Since this code works fine in my sandbox environment, is there any other settings I should check on the server environment which would cause hiding content type on new menu of document library.

  class Program
  {
    static void Main(string[] args)
    {
      SPSite spSite = new SPSite("http://sp2010vm");
      foreach (SPWeb spWeb in spSite.AllWebs)
      {
        spWeb.AllowUnsafeUpdates = true;

        //For each site, cycle through lists
        bool isDocLibraryExists = false;
	      foreach(SPList spList in spWeb.Lists)
	      {
          if(spList.Title == "Classified Documents")
		      {
             isDocLibraryExists = true; 
          }
        }
      
        if(isDocLibraryExists == true)
        {
          //Create new doc library
          SPList splist = spWeb.Lists["Classified Documents"];

          //Create Content Type
          SPContentType documentContentType = spWeb.AvailableContentTypes["Classified Documents Folder"

Hyperlinking to individuals folder in a document library from one link

  
I have created a document library with a folder belonging to each person in our staff. I created a link in the top menu labeled "My Files". Is it possible from the "My Files" hyperlink to link directly to the folder of the individual logged in? Currently right now the link just opens the directory and the user will see just one folder which is ok but it would be neat to have it direct right to the root of their folder.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend