1
vote
0answers
15 views

Advance Search For Find Document with Column

I have a Document Library that contain large number document with four kind of content type. My Documents Contain specific column that inherit from content type. Now I need to design an advance search ...
0
votes
0answers
15 views

sharepoint programmaticaly add list item under current user 0x80070005 (E_ACCESSDENIED))

Please help me. In our company, we developed an application under the Apple device to work with the company's internal services , including it in this application it is possible to send messages to ...
0
votes
1answer
32 views

Test-SPContentDatabase doesn't return information

I run Test-SPContentDatabase like this: public string Test_Associate(string DbName,string UrlApp) { Runspace runspace = RunspaceFactory.CreateRunspace(); // open it ...
0
votes
1answer
34 views

run SharePoint management shell with c#

I have some ps1 that I need to run it with SharePoint management shell. I dont have the possibility to run it with the traditionnal powershell even i havce the administrator role : public string ...
0
votes
0answers
13 views

Possible with Webpart under libraries in the current navigation

Is it somehow possible to drag my "webpart" up in the quick launch and put it under libraries? I've been building a webpart that looks like a list and I can move it around in Site Settings -> ...
0
votes
1answer
51 views

Export my Enterprise Wiki aspx pages to a PDF files

Our client has asked if we can add a link to their current Wiki pages named "Export to PDF", so when the user click on the link the Wiki content will be exported inside a pdf file ? i got confused if ...
0
votes
1answer
41 views

splongoperation and executiontimeout

Does SPLongOperation overrides setting of executionTimeout in layouts/web.config for sharepoint 2010 standalone/farm and 2013 standalone? As I have a long running process which works fine in a ...
2
votes
1answer
46 views

Add Publishing Pages to specfic subsites programmatically in FeatureReceiver

Currently, I have created subsites programmatically in FeatureReceiver method and have a way to create publishing pages, but they are being created on the root site. Is there a way to target a ...
2
votes
2answers
89 views

How i can programmatically get all the SharePoint team-sites?

In my SharePoint site in "SharePoint admin center" page (Admin-> SharePoint) I have a list of the teamsites of my organization. How can I get this list programmatically?
1
vote
1answer
24 views

Override text in emails sent by newsfeed alerts

Working with the SharePoint social newsfeed (not Yammer). We would like to change some of the wording in the emails (such as change the word SharePoint to our specific branding) that get sent when ...
0
votes
1answer
17 views

Download image from Imagelibrary

I have an event receiver that should download images from an imagelibrary, and do some stuff with that copy. There will be several images with the same customid that i want to grab, so I loop over all ...
0
votes
0answers
17 views

How to : Visual Studio 2010 create Sharepoint List and define data source?

I have this ugly requirement of creating a SharePoint list (could be a custom or an calendar) which displays the companies upcoming events, the problem is that x department updates an excel sheet ...
1
vote
0answers
49 views

Injecting dynamic list content into an alert template email

I have tried, and successfully failed, to determine a way to inject the emailed item's value from a universal custom column into the default alert emails generated by SharePoint, in both the subject ...
0
votes
1answer
106 views

Code Download file from Doc icon image in sharepoint 2010

I have written code where it will show the Sharepoint document library in sp grid view. In the grid view it will show the doc icon Image correctly. Now i want to Download the uploade document from ...
0
votes
0answers
32 views

How to create list from excel sheet located inside document library?

I need to create and calender control/list in share point from an excel file, there are many tutorials available for this on net, but unfortunately this excel file needs to be updated timely and hence ...
1
vote
1answer
74 views

Check user read access to a particular list item

I need to check if a user has read level access to a particular list Item. What would be the best approach 1) listItem.DoesUserHavePermissions(currentUser, SPBasePermissions.ViewListItems); //here ...
0
votes
1answer
72 views

ApplyChanges not working from Toolpart

I've tried every solution, and searched every part of the internet, and yet, I do not seem to understand why my properties aren't saved. I've attacked the code. And maybe someone can help me out here: ...
1
vote
0answers
141 views

SP DataTimeControl validation issue (error message does not disappear after choosing correct date)

I write simple WebPart with few asp.net controls. I have problem with validation control and SharePoint date time control. The markup: <SharePoint:DateTimeControl ID="dtc" runat="server" ...
0
votes
1answer
61 views

How to Create WF with C#

I have learned about Workflow by dropping and clicking and the next phase is learn how to create WF with C# based this link ...
0
votes
0answers
158 views

RichHtmlField showing html markup in display mode

I am trying to render html tags with text in RichHtmlField control in SharePoint. Following is my code. <%@ Register TagPrefix="Publishing" Namespace="Microsoft.SharePoint.Publishing.WebControls" ...
2
votes
1answer
117 views

Force create SPUser for disabled AD account

I am trying to get SharePoint to create an SPUser for a disabled active directory account. The reason for this is that I am archiving items across site collections. As the items are copied I am ...
0
votes
1answer
113 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
0
votes
1answer
24 views

Creating a Table in PDF and updating the values in the table SharePoint 2010 programmatically

I am looking into adding a table into pdf with the columns - approver name and approver comments using c# code in console application. and then update the columns with values like "approver1" ...
1
vote
2answers
229 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
0
votes
2answers
192 views

Use server object model check if SPListItem field is a SPUser or SPGroup

I am making a TimerJob that duplicates ListItems from one SiteCollection to another. In order to do this I need to copy the Users and Groups over to the other site. I am having trouble identifying ...
1
vote
1answer
43 views

Create File in sharepoint mapped directory

I am creating a farm solution, I want to create zip file from 2 or more files taken from sharepoint library. I want to temporarily save these files in my mapped folder ("Layout/MyFolder"). and allow ...
0
votes
1answer
92 views

Programatically create content type for multilingual site

How to create content type for for multilingual site programatically. Example Content type column internal name: firstName. English Display Name: First Name, German Display Name:Vorname. Same for ...
0
votes
3answers
464 views

SharePoint 2013 Webpart - Multiple file upload

I want to add the multiple files functionality to my custom webpart in C# .NET 4.5. I want the same functionality as the out of the box multiple files add feature when you create a list item via the ...
0
votes
1answer
237 views

Bind ListItemCollection as a DataSource of a DataGridView

I am using SharePoint Server 2013. I am trying to show a list data in a DataGridView in a windows forms application(client application). I obtained the ListItemCollection object related to the ...
0
votes
0answers
33 views

How to migrate Managed Metadata Store?

I need to migrate Managed Metadata Store from SharePoint 2007 to SharePoint 2013 environment. What are the check-list, I need to prepare or what are the point I need to remember/cater or what I need ...
0
votes
1answer
710 views

The remote server returned an error: (403) Forbidden

I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...
3
votes
1answer
86 views

SSO SharePoint 2013 for 2 domains

Hi We are building apps with sharepoint 2013. Currently we have them setup as two web applications with two separate domain names - Wep App 1 - www.webapp1.com Web App 2 - www.webapp2.com We ...
0
votes
0answers
120 views

Adding SocialCommentControl to a page

I have created a page layout for my publishing site. On this page layout i want to add a commenting and rating option. The rating options shows up just fine on the page but the commentcontrol doesn't ...
0
votes
1answer
103 views

Set lookupfield value on document upload through event receiver

I have a custom list, where when I create a new item, I assign a custom id to that element through an event receiver. After the item is created, I create a file that I upload to a document library. ...
0
votes
1answer
197 views

Error 401 on ExecuteQuery SharePoint 2013 production SharePoint Server

I create a farm solution that query in a list of SharePoint 2013. When I run my solution in a development server using Context.Credentials = new NetworkCredential('user', 'pass', 'domain'), the query ...
3
votes
1answer
104 views

Usage of RootWeb property instead of OpenWeb method

I am referring a SharePoint book and I found the following code snippet in an example in that book. using (SPSite mySiteCollection = new SPSite(mySiteUrl)) { using (SPWeb mySPSite = ...
0
votes
0answers
147 views

Modified People Editor field not reflecting changes in Code Behind

As per my client's requirements I have created a completely custom list EditForm. Everything is working fine except for one thing. If I modify the manager field which is of type ...
1
vote
2answers
414 views

Checking permissions of a user that is in an AD Group within a SharePoint Group

I've been mucking around with checking permissions to a site (SPWeb) for a bit and it seems there is no straightforward way to do this. The SPWeb.DoesUserHavePermissions doesn't seem to care about ...
0
votes
0answers
89 views

consuming WCF web service from client side in SharePoint 2010 Visual Web Part Sandbox Solution

I have a visual web part Sandbox solution. I need to attach an external WCF web service in order to submit data to database using the custom form I have created. Is there a way I can attach web ...
0
votes
3answers
593 views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
1answer
184 views

Adding to a document library using FileUpload

I am having major woes trying to add a file to the document library. I have modified a console app to use a FileUpload control. The major issue is that the file is not added to the library. Then I ...
0
votes
0answers
27 views

Get Sharepoint properties in Powerpoint Add-in

I am trying to develop a powerpoint add-in and for one of the opertations i need to pull some data from the sharepoint library where the presentation is stored. I would like to use the object model ...
0
votes
0answers
18 views

Gain Experinece of Customized SharePoint Solution

Goal: Learn about C# coding in relation to SharePoint 2013 Problem: I have taught the foundation of SharePoint 2013 based on reading these book: Sharepoint 2013 Branding and User Interface Design ...
0
votes
1answer
65 views

wsp activation does nothing

I have created a site template, downloaded and imported my WSP into Visual Studio 2012, selected the needed lists and dependent columns. When I deploy to a new site collection from Visual Studio ...
0
votes
1answer
869 views

Limit a user group to a specific view created via InfoPath 2010

I have created a new view called 'RequesterView' (via InfoPath 2010) to add items to a issue tracking list. The purpose of this is to limit the visibility of certain fields such as 'Assigned To', 'Due ...
0
votes
1answer
83 views

How to get Last Modified Timestamp of a file from sharepoint?

I am creating a Web Application in ASP.NET wherein I need to find out Last Modified Timestamp of a file (the path of file is given). But, I could not figure out How to do It. I have written below ...
0
votes
1answer
67 views

Access all workflow tasks without being assigned to for validation

I have a request approval sequential workflow that has many tasks created upon approval. For each approval, Im using a custom webpart that shows different panels based on the status of the request. ...
1
vote
0answers
115 views

While creating folder in sharepoint using C# takes much time

Yesterday I have programmed to create folder in SharePoint 2010 using C#. It's fine that code create folder but the problem is that while creating a folder it takes 5-10 seconds. And i think it's too ...
2
votes
2answers
701 views

How to get all the web application of SharePoint.

How do I get url of all the web application created in SharePoint 2010 with client object model using C#.
0
votes
1answer
71 views

adding fields in SharePoint 2013 C#

what is the different in adding a field and creating a field ? SPFieldChoice category = (SPFieldChoice)list.Fields.CreateNewField(SPFieldType.Choice.ToString(), Constants.category); or SPFieldText ...