>

Update URL After cloning Server in SharePoint

This would be very common scenario most of us bump into. You may need to clone your Web Front End to host it in different environment. After restoring the cloned instance you may find your new server refers to the old server name. Quick and easy way to…

Silent Print PDF without print dialog

After trying different options I found a good solution to print pdf silently without print dialog. It is a suitable solution for users having document printed quickly in no time.

To achive this, I used iTextSharp open source library to manipulate pdfs. Download free library and add itextsharp.dll refence to your visual studio project.

Go to your class file . . . → Read More: Silent Print PDF without print dialog

How to Create Custom Menu Item in Site Actions

The below sample feature creates new menu item in Site Actions menu, Please replace the GUID in the below code.

Sample Feature File

<?xml version=”1.0″ encoding=”utf-8″?>

<Feature

    Id=”<GUID>…

TreeView Doc Lib V 2.0 in CodePlex

I have released the next version of TreeView Document Library WebPart for SharePoint 2007.
Added features in this release:
 

Automatically populates the list of document libraries in dropdownlist in toolpart

Collapsed TreeView can be managed from to…

Programmatically Retrieve List of Document Libraries

The following code snippet is used to retrieve the list of document libraries.

 
SPWeb _web = SPContext.Current.Web;

SPListCollection ListColl = _web.Lists;

foreach (SPList _lst in ListColl)

{

if (_lst.BaseTemplate == SPListTem…

WSS 3.0 Application Templates Grouped by Business Area

If you are looking for free application template, which suites your business area, read this resource on TechNet. It has list of 40 Application templates grouped by the following business category.

 

Business Management/Finance

Human Resources

Op…

How to Use Resource File in SharePoint 2007

 
Create Resource file using Visual Studio IDE

Copy the resource file into 12 hive resource folder

GetLocalized method from SPUtility to read the values from resource file

Syntax:

SPUtility.GetLocalizedString(“$Resources:<<Res…

The trial period for this product has expired – MOSS 2007 Error

 
If you encounter the error “The trial period for this product has expired” after upgrading the license from trial to standard/enterprise edition in sharepoint.

 
Change your app pool account from “Network Service” to Doma…

How to Enable Document Information Panel in MOSS 2007

By Default the document information panel will not be enabled in document library.

Go to Library Settings

Click Advanced Settings

Enable allow management of content types in Advanced Settings.

Click the Document Content Type and click on D…

Item Updating or Updated Event Occurs twice in Document Library

 
Item Updating or Item Updated Event in SharePoint 2007 occurs twice, if require checkout option is enabled for document library.

I found the following workaround from Microsoft Support for this issue.

 
Check the value of vti_sourcecontrolchec…