SharePoint: Tipos de Lista (ID + Nombre)

100   Generic list101   Document library102   Survey103   Links list104   Announcements list105   Contacts list106   Events list107   Tasks list108   Discussion board109   Picture library110   Data sources111   Site template gallery112   User Information list113   Web Part gallery114   List template gallery115   XML Form library116   Master pages gallery117   No-Code Workflows118   Custom Workflow Process119   Wiki Page library120   Custom grid for a list130   Data Connection library140   Workflow History150   Gantt Tasks list200   Meeting Series list201   Meeting Agenda list202   Meeting Attendees list204   Meeting Decisions list207   Meeting Objectives list210   Meeting text box211   Meeting Things To Bring list212   Meeting Workspace Pages …

Sigue leyendo SharePoint: Tipos de Lista (ID + Nombre)

Convertir HTML en PDF en C#

Una interesante herramienta para crear facilmente PDFs desde HTML: NReco PdfGenerator. 1. Creamos nuestro HTML string html = "MY_HTML"; 2. Creamos una instancia del conversor var pdfConversor = new NReco.PdfGenerator.HtmlToPdfConverter(); 3. Configuramos las propiedades que necesitemos Modificar el grosor de los margenes pdfConversor.Margins = new NReco.PdfGenerator.PageMargins() { Bottom = 25, Left = 25, Right = 25, …

Sigue leyendo Convertir HTML en PDF en C#

Como ocultar el enlace «Contenidos del Sitio» del menú de SharePoint 2013

En el menú lateral izquierdo de nuestras páginas de SharePoint podemos ver que el último enlace es el de "Contenidos del Sitio". Este menú está distribuído en dos bloques: El primero contiene todos los enlaces del menú (sites, páginas...), el segundo contiene este enlace a los contenidos de nuestro site. Para ocultarlo, podemos aplicar un …

Sigue leyendo Como ocultar el enlace «Contenidos del Sitio» del menú de SharePoint 2013

Delete SharePoint Page Programmatically

SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) { //Obtain the page PublishingPageCollection publishingPages = PublishingWeb.GetPublishingWeb(web).GetPublishingPages(); PublishingPage page = publishingPages.FirstOrDefault(f => f.Uri.AbsoluteUri == "YOURPAGE"); if (page != null) { //Allow modifications bool webAllow = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; SPFile file = page.ListItem.File; //Delete file.Delete(); //Restablish default permissions web.AllowUnsafeUpdates = …

Sigue leyendo Delete SharePoint Page Programmatically

Checkin/Publish and Unpublish/Checkout SharePoint Pages Programmatically

Unpublish and Checkout SharePoint Page: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("YOURSITE")) { using (SPWeb web = site.OpenWeb()) { //Obtain the Page PublishingPageCollection publishingPages = PublishingWeb.GetPublishingWeb(web).GetPublishingPages(); PublishingPage page = publishingPages.FirstOrDefault(f => f.Uri.AbsoluteUri == "YOURPAGEURL"); if (page != null) { //Allow file modifications bool webAllow = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; SPFile file = page.ListItem.File; //Unpublish …

Sigue leyendo Checkin/Publish and Unpublish/Checkout SharePoint Pages Programmatically