SharePoint 2010 FBA Pack Hits #3 in Popular Releases on CodePlex

I was pleased to discover today that the SharePoint 2010 FBA Pack is in the 3rd spot for popular releases for the week on the CodePlex home page.  It’s nice to see that the SharePoint community is making use of it.

SharePoint 2010 FBA Pack Popular Release On CodePlex

http://sharepoint2010fba.codeplex.com/

SharePoint 2010 FBA Pack Released

I’ve just released the SharePoint 2010 FBA Pack on CodePlex:

http://sharepoint2010fba.codeplex.com/

The FBA Pack is a collection of web parts and tools for managing forms based authentication in SharePoint 2010.  It is a port of the SharePoint 2007 CKS Forms Based Authentication Solution to SharePoint 2010.  It has been changed extensively to work with SharePoint 2010’s claims based authentication and has been restructured to use Visual Studio 2010’s new SharePoint project type.

SharePoint 2010 can be configured out of the box to authenticate against an ASP.NET Membership database, but strangely it does not include any tools for managing membership users and roles, or any web parts to allow new users to register or to change/reset their password.  That’s where the FBA Pack comes in – it contains:

User Management

Users can be created, deleted and edited, as well as assigned to Roles or SharePoint groups.

Manage Users Page

Manage Users Page

Role Management

Roles can be created and deleted.

Manage Roles Page

Manage Roles Page

Change Password Web Part and Page

This highly configurable web part will allow a user to change their password.  Additionally a built in Change Password page has been included, with a link to it on the users menu.

Change Password Page

Change Password Page

Membership Request Web Part

This highly configurable web part will allow new users to register to site.  An email will be sent to the user with their temporary password and instructions to login to the site.  As well there is the option to review membership requests.

Membership Request Web Part

Membership Request Web Part

Password Recovery Web Part

This highly configurable web part will allow a user to reset their password.  An email will be sent to he user with their temporary password and instructions on changing it.

Password Recovery Web Part

Password Recovery Web Part

Membership Review List

The FBA Pack can be configured to allow new user requests to be moderated.  The membership review list displays all new membership requests, which can either be accepted or rejected.

Membership Review Page

Membership Review Page

Use JPEG’s in Reporting Services if exporting to PDF

I recently made the mistake of using PNG’s for high-resolution background images in SQL Server Reporting Services (2008 R2). I wanted to use PNG’s as they were lossless, supported alpha transparency and actually generated smaller files than JPEG for the images I was using.  Unfortunately I ran into these problems when exporting to PDF:

SLOW export to PDF
PNG exported to PDF: 17 seconds.
JPEG exported to PDF: 2 seconds.
GIF’s also take the same ridiculously long amount of time as PNG’s to export to PDF.

No Alpha Transparency Support
I was initially planning to have a “DRAFT” watermark appear on the report based on a parameter.  I thought an easy way to do that would be to add a PNG with alpha transparency as an additional image object, and show/hide it as needed. This works great when exporting the report to a TIFF file, but it turns out the PDF renderer does not support transparency:

Alpha transparency exported to TIFF

Alpha transparency exported to TIFF

Alpha transparency exported to PDF

Alpha transparency exported to PDF

I finally concluded that JPEG’s are the only option if the report is going to be exported to PDF. In order to solve my DRAFT watermark issue, I ended up having to create two versions of each image, one with a draft watermark, one without.