Tuesday, January 28, 2014

Sharepoint & PDF

We all needed @ sometime to preview a pdf document instead of downloading it, let's make a tour of what.
IE8
 When we try to open PDF file in IE 8. It won’t open but ask us to save it or Cancel instead of opening the pdf.
Reason :  In Internet Explorer 8 Microsoft added a security feature, a mechanism to help prevent the untrusted content from compromising your site’s security. When the new X-Download-Options header is present with the value no open, the user is prevented from opening a file download directly; instead, they must first save the file locally. SharePoint 2010 utilizes this enhanced security feature in IE 8 to block the opening of file types it considers vulnerable to scripting or other attacks, such as PDFs.
Solution #1:
  •  Go to Central Admin à Application Management à Manage Web Application
  •    Select  the  Web Application for which you want to make changes
  •    In Ribbon, Go to General Settings àGeneral Settings àBrowser File Handling
  •    By default, the option “Default” will be checked. Change it to “Permissive” à Select OK.

  •  Do an IISRESET, refresh the page and try to open PDF Document.
  •   PDF document will be opened.


Solution #2:
  • Open Adobe PDF from Start button
  •  Go to Edit à Preference à Categories à  Internet à uncheck Display PDF in Browser option
  • Save and close it.

Refresh your page and Now Click PDF. It will ask for open option or will be opened in adobe\IE.

 ***///***///***

In Other hand,

Here's a free PDF Viewer webpart:
  • http://pdfviewer.codeplex.com/
Want some other essays?
  • http://mssharepointtips.com/tip.asp?id=1187
  • https://www.foxitsoftware.com/shopping/checkout.php?action=view

Sunday, January 26, 2014

How to create rich HTML email message in Sharepoint Designer 2010 workflow ?

I was very happy when i first saw sharepoint designer 2010 workflow HTML email then i become frustrated because i cannot able to add images and tables directly from editor. i thought rich HTML is not supported with this version but i found a quick way to add rich HTML in email body message.
Here is the steps:
  • First create your HTML in dreamweaver or any other HTML editing tool
    (NOTE: Try to avoid spacing & <br/>’s )
  • Then open your workflow in SPD 2010
  • Add “Send email” workflow action from ribbon
  • Keep “Send Email” action selected/highlighted
  • Then navigate to ribbon and select advanced properties
  • Select last option Body
  • Click on the button (3 dotted button) to open the text pad
  • paste your html including head,body,DTD from dreamweaver
  • Click OK and open the action from workflow step
  • Then add your lookups and test it.
  • Done!
 Thanks to Jim Mathew's blog

Wednesday, January 22, 2014

Sharepoint Useful Blogs

Jamil Haddadin's Blog
http://jamilhaddadin.com/category/sharepoint/sharepoint-how-to/

Set New Policies Settings in a document library
http://www.collaboris.com/blogs/collaboris-blog/policy-management/2013/02/27/how-to-set-default-column-values-on-a-document-in-sharepoint#.UuDA-_tBveh

Intro to SP very good for serious
http://www.bizsupportonline.net/blog/2011/04/basic-sharepoint-2010-components-master-infopath-2010-free-online-resources/

Some Free & Trial Webparts
http://www.boostsolutions.com/sharepoint-2010.html

Great Rich blog, esp. in infopath
http://www.bizsupportonline.net/blog/2011/ 

http://suehernandez.wordpress.com/ 

Books to read:
Designing Forms for SharePoint and InfoPath

Publish your intranet sharepoint site
http://www.sharepointconfig.com/2010/03/configuring-a-sharepoint-website-to-allow-ssl-connections/

Change Column default value in a Document library

Friday, January 3, 2014

Importing and displaying user pictures from Active Directory into MySite Sharepoint

 Importing and displaying user pictures from Active Directory into MySite Sharepoint
Check this
http://www.sharepointdiary.com/2013/01/import-user-pictures-from-active-directory-to-sharepoint-2010-mysite.html

 You have JPG pictures in AD, stored with the users thumbnailPhoto attribute.
 You try to import pictures for a user profile from the Active Directory thumbnailPhoto attribute,
 to store within the Picture attribute in Microsoft SharePoint Server 2010.

3 steps to do:
  • Create an import PictureURL mapping
  • Perform a full profile synchronization
  • Run the Update-SPProfilePhotoStore PowerShell command:
Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation http://<YourServerName>/my

So after updating the pics in AD, you have to repeat the 2nd & the 3rd steps
-----

 You have set up an import Picture URL mapping.

create the Mapping in SP2010 or SP2013:

 go to Central Admin->Application Management->Manage Service Applications
 select your User Profile Service Application
 select the People->Manage User Properties tab
 in the left-hand column, look down and select the Picture property.
 edit this - down the bottom is 'Add New Mapping' and via the dropdown on Attribute, select thumbnailPhoto.
 it should then look like this:
   User Profile Synch Connection
   thumbnailPhoto
   Import
go back to the Manage User Properties and you should now see
   Picture    URL   thumbnailPhoto
OK, so now Synchronization->Start Profile Synchronization. Let that run through.
Next you will want to double-check your MySiteHostLocation.
select My Site Settings->Setup My Sites
grab the entry from My Site Host Location - that is what we need for the MySiteLocation parameter.
so, on the SharePoint box, launch a SharePoint PowerShell, (run as administrator).
the command will be as per below, with your path replacing "http://<YourServerName>/my"

Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation http://<YourServerName>/my

Now, go back to your mysite, select your profile and... voila!!  the new picture has been pulled in from AD.
 Things that can go wrong:
  • Be on current Cumulative Updates. (Post Dec 2011 absolute minimum!)
  • User Profile Synch service has to be running/enabled/OK!
  •  Permissions:
    •  Service Applications->User Profile Service Application, click Permissions. 
          Add your account and check the Full Control checkbox.
    •  Service Applications->User Profile Service Application, click the Administrators
          Add your account there and check the Manage Profiles.
  • Site Collection Administrator for the My Site host
  • DBO access to the DB containing mysite host.
  • run powershell with 'Run as Administrator'