Pages

Monday, July 23, 2012

Sharepoint 2013 and presentations


Hello All

Wow, what a great news, Microsoft released SharePoint 2013 beta!!!!

To get started with it , Sharepoint 2013 presentations were released by Microsoft and can be downloaded at

http://www.microsoft.com/en-us/download/details.aspx?id=30361

So exicted !!!!

Disha Shah


Friday, July 13, 2012

Print Functionality of List Vew Webpart in SharePoint

Hello Friends

User wants to print the available listitems of a list from a ListViewWebpart in a page and they want to print only those records rather than entire page content (Left Navigation, breadcrumbs etc.) .

So we could not provide the "print" functionality from the browser so we have to include below javascript inside the Content Editor Webpat and now you have print functionality available for ListView webpart only.

Add a content editor webpart on same page where your ListViewWebpart resides.
Write this javascript in the content editor webpart.

<input onclick="javascript:void(PrintWebPart())" type="button" value="Print Page"/> <!-- copy and paste in to a content editor source editor web part --><script language="JavaScript">



<!-- Web Part/region to print -->
var WebPartElementID = "MSO_ContentTable";

//Function to print Web Part
function PrintWebPart()
{
 var bolWebPartFound = false;
 if (document.getElementById != null)
 {
  //Create html to print in new window
  var PrintingHTML = '<HTML>\n<HEAD>\n';
  //Take data from Head Tag
  if (document.getElementsByTagName != null)
   {
   var HeadData= document.getElementsByTagName("HEAD");
   if (HeadData.length > 0)
    PrintingHTML += HeadData[0].innerHTML;
   }
  PrintingHTML += '\n</HEAD>\n<BODY>\n';
  var WebPartData = document.getElementById(WebPartElementID);
  if (WebPartData != null)
  {
   PrintingHTML += WebPartData.innerHTML;
   bolWebPartFound = true;
  }
  else
  {
   bolWebPartFound = false;
   alert ('Cannot Find Web Part');
  }
 }
 PrintingHTML += '\n</BODY>\n</HTML>';
 //Open new window to print
 if (bolWebPartFound)
 {
  var PrintingWindow = window.open("","PrintWebPart", "toolbar,width=800,height=600,scrollbars,resizable,menubar");
  PrintingWindow.document.open();
  PrintingWindow.document.write(PrintingHTML);
  // Open Print Window
  PrintingWindow.print();
 }
}</script>

Now you all set for print the listitems of listviewwebpart in SharePoint Pae.

Disha Shah

Thursday, July 5, 2012

Associate an SharePoint Designer workflow with a specific task list

Hello All,

If we would like to associate a different SharePoint Task List to SharePoint Designer workflow from more than available Task Lists, there is not any direct way or user interface to do this.

The configuration for which task List is configured to SharePoint Designer Workflow is stored  inside the wfconfig.xml file. This is not an recommended way to do this.

If there are multiple task list available inside SharePoint site, SharePoint Designer Workflow picks up the first Task List.

So if we want to attach Task List of our own choice , we need to follow these steps.

1> Create a task list which lists first as Task List.

2> In SharePoint Designer, create a new workflow and compile it (click Finish in the Workflow Designer)

3> Now rename that task list from SharePoint User Interface.

That's it!!!You are all set with the SharePoint Designer 2007 Workflow with your desired Task List.

Disha Shah

Wednesday, July 4, 2012

SharePoint PDF Files - Open in AdobeReader

Hello

Users found difficulty when they open any PDF files which are in Document Library, it always 
opens in browser and if they close it, it will close SharePoint Portal. If they would like to 
continue work inside the SharePoint Portal, they have to re-open SharePoint Portal.

So how to solve this? Please follow the below steps to change Adobe Reader settings to open 
PDF files.

1.       Click Start from your desktop
2.       Go to All Programs
3.       Open the Adobe Reader program:
4.       Select Preferences from Edit menu:
5.       From Internet from the Categories list and uncheck the Display PDF in browser option:
Once these setting are changed the PDF will no longer open in the browser window.  Problem Solved!!!


Disha Shah