Tuesday, July 7, 2009

InfoPath 2007 Template Parts

Finding tough to keep the he sections, tables, fields, data connections and dropdown lists consistent between all forms.

The InfoPath 2007 was released and it has a new feature called Template Parts. Template Parts is a new type of InfoPath template that allows for predefined forms to be saved and then imported into the InfoPath Controls Task Pane. A Template Part is capable of saving Data Connections, Rules, Conditional Formatting, Data Validation and many other things. Just having this capability has saved me a tremendous amount of time when designing forms and it has increased the ROI for the client. A standard address block is one of the first things that I create for a new client because I'm able reuse it right away and show immediate ROI. At first you might not think this would have a big impact but when you take in account that, you no longer have to worry about defining the data source fields, layout table, field widths, colors, font style/size, data connections for states/regions and country, data validation, rules or conditional formatting then the ROI is reached pretty quickly. Once I understood this capability it changed how I started developing forms.

A feature of a Template Part that you need to take in consideration when using them to help designing forms is the Update capability. The Update capability allows for existing Template Part control on a form to be updated once the master Template Part control has changed and re-imported into the designer. At first this capability was frustrating because I didn't design everything with this in mind but after understanding how it worked, I quickly changed how I was designing forms and took advantage of the Update capability.

Long story short, Template Parts are great if you put thought into how you are building and using them. If you don't do this then it will just adds more complexity when building your InfoPath form and shouldn't be used.


Thursday, July 2, 2009

Infopath - Edit in Browser + Close = "The form has been closed." Annoyed?

(12Hive)\TEMPLATE\FEATURES\IPFSSiteFeatures\FormServerEcbEntry\EcbEntry.xml

Refer
http://geek.hubkey.com/2007/01/infopath-forms-services-close-button_17.html

Forcefully Activate "IPFSSiteFeatures" feature scoped to WebApp.
iisreset / recycle the application pool.

It must take you back without the annoying page "The form has been closed."
Update your upgrade document to redo the changes after the upgrade as upgrade may reset this feature.

Monday, June 29, 2009

Sharepoint Site Creation Notification Email

Steps Involved:

1. Create an event reciever
2. Create a feature to call the reiever when activated.
3. Create a feature stapler to staple the feature to Site Defs.

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWeb CurrentWeb = properties.Feature.Parent as SPWeb;
String Body = "A Sub Site Created with Title \""+ CurrentWeb.Title+ "\" with the URL "+CurrentWeb.Url;
foreach (SPUser user in CurrentWeb.Groups["AllAlerts"].Users)
{
SPUtility.SendEmail(CurrentWeb, false, false, user.Email, "Site Creation Alert", Body);
}
}

//Use the sharepoint inbuilt capability of sendin and email fron the SPUtility

Tuesday, June 9, 2009

List Template Id

ListId - Description
100 Generic list
101 Document library
102 Survey
103 Links list
104 Announcements list
105 Contacts list
106 Events list
107 Tasks list
108 Discussion board
109 Picture library
110 Data Sources list
111 Site Template Gallery
113 Web Part Gallery
114 List Template Gallery
115 XML Form Library (InfoPath)
120 Custom grid for list
200 Meeting Series list
201 Meeting Agenda list
204 Meeting Decisions list
207 Meeting Objectives list
210 Meeting text box
211 “Things to Bring” Meeting list
212 Meeting Workspace Pages list
300 Portal Sites list
1100 Issue Tracking list
2002 Personal document library
2003 Private document library

Friday, June 5, 2009

Sharepoint Banner

  1. Create you banner.jpg and 
  2. Copy to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES
  3. Make modification in the core.css as shown below.("C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES\CORE.CSS")
Before Modification:
.ms-globalbreadcrumb{
font-size:8pt;
text-align:right;
background-color:#ebf3ff;
padding:2px 10px 2px 5px;
}

After Modification:
.ms-globalbreadcrumb{
font-size:8pt;
text-align:right;
background-color:#ebf3ff;
background-image:url("/_layouts/images/banner.jpg");
padding:2px 10px 79px 5px;
}

Tuesday, June 2, 2009

Override BDC default Action

Create a new Property element in the Properties element of the Entity.  Give it an attribute of DefaultAction and specify the name of the Action we defined earlier. 
Default

Specify your custom Actoin with Name="Default".

eg.        
      Action Position="1" IsOpenedInNewWindow="false" Url="{0}" ImageUrl="" Name="Default"
    

When you import the application definition, you will receive a warning like the following. 
"Could not create profile page for Entity MyEntity.  The error is: Default action exists for application ‘MyInstance’, entity ‘MyEntity’.  Profile page creation skipped.
This really isn’t an error.  It is just telling you that since you specified a default action, it did not automatically generate a profile page for the entity.

Identify WFE Vs Complete option used


You must use the Complete installation option on all computers you want to be index servers, query servers, or servers that run Excel Calculation Services.

To identify which Sharepoint Server is installed using complete option, just check the Excel Calculation Services Tab is available in the Services on the Server.

To Change a server with WFE to Complete, follow the following steps
1. Remove Server from the Farm
2. Uninstall Moss
3. Install Moss with complete Option. Install the updates(e.g., SP2)
4. Add to the Existing Farm.

That is it.

Friday, May 29, 2009

Get SSP URL

 Use the following Chunk 2 get the SSP URL. This uses reflection mechanism.

 private string getSSPURL()
{
     string uri = string.Empty;
     ServerContext sc = ServerContext.Default;
     object ssp = sc.GetType().GetProperty("SharedResourceProvider",BindingFlags.Instance | BindingFlags.NonPublic).GetValue(sc, null);
     Guid sspGuid = (Guid)ssp.GetType().GetProperty("AdministrationSiteId").GetValue(ssp, null);
     using (SPSite sspSite = new SPSite(sspGuid))
     {
       uri = sspSite.WebApplication.GetResponseUri(SPUrlZone.Default).AbsoluteUri + "ssp/admin";
     }
     return uri;
  }

Wednesday, May 20, 2009

Kerberos - Pros & Cons

Pros:

  1. Faster performance is experienced when using Kerberos as it caches information about the client after authentication. This means that it can perform better than NTLM particularly in large farm environments
  2. Delegation - Kerberos can delegate the client credentials from the SharePoint front-end web server to other back-end servers like Oracle. So you are eliminating double hops. (Login Challenges)
  3. You can also with MOSS 2007 utilize RSS feeds "Within your SharePoint Environment" 
  4. Microsoft recommends to "Use Kerberos authentication for sites with a high security service level agreement."
  5. Federated Search between Farms (e.g., will work based as the user credentials are passed automatically.)
  6. Planning on utilizing BDC some LOB Applications will require Kerberos authentication.
  7. SQL Serer Reporting Services integration works well with Kerberos.
  8. Switch back to NTLM is possible.

 

Cons:

  1. In Active Directory, SPN should be configured carefully .If not troubleshooting is difficult

 

Related Links:

http://technet.microsoft.com/en-us/library/cc288475.aspx

http://ablog.apress.com/?p=1127

http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/de88fb8c-0101-4413-9855-34501569e077

http://blogs.msdn.com/martinkearn/archive/2007/04/23/configuring-kerberos-for-sharepoint-2007-part-1-base-configuration-for-sharepoint.aspx

 

Friday, May 15, 2009

Compiling audience object model.

Refer the community content by me at
http://msdn.microsoft.com/en-us/library/microsoft.office.server.audience.audiencemanager.aspx

MSDN Note "Compiling audiences is not supported in the object model."
Actually we can compile the audience.
Following code to compile all the audiences.
Add Reference Microsoft Search Component(Microsoft.Office.Server.Search.dll)
using Microsoft.Office.Server.Search.Administration;

using (SPSite site = new SPSite(txtSite.Text))
{
ServerContext context = ServerContext.GetContext(site);
SearchContext searchContext = SearchContext.GetContext(context);
string[] args = new string[3];
args[0] = searchContext.Name;
args[1] = "1"; //"1" = start job, "0" = stop job
args[2] = "1"; //"1" = full compilation, "0" = incremental compilation (optional, default = 0)
AudienceJob.RunAudienceJob(args);
System.Threading.Thread.Sleep(3000);
}

To Compile a specific audience, add the optional arg[3] after making the String array size to 4 and specify the Audience Name.

Tuesday, May 12, 2009

The lifecycle events of a Sharepoint Connectable WebPart wih a single ViewState backed property;

On Page Load

  1. Constructor
  2. OnInit
  3. OnLoad
  4. ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart)
  5. CreateChildControls
  6. OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data)
  7. SaveViewState
  8. Render
  9. RenderChildren
  10. RenderContents
On 1st Postback
(PostBack click handler sets ViewState via public Property)

  1. Constructor
  2. OnInit
  3. CreateChildControls
  4. OnLoad
  5. PostBack click handling
  6. ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart)
  7. OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data)
  8. SaveViewState
  9. Render
  10. RenderChildren
  11. RenderContents
On 2nd Postback
(PostBack click handler sets ViewState via public Property)

  1. Constructor
  2. OnInit
  3. LoadViewState
  4. CreateChildControls
  5. OnLoad
  6. PostBack click handling
  7. ConnectionConsumer method is called if web part is connectable (sets the connection providers interface in the webpart)
  8. OnPreRender (if your web part is connectable you would typically call the connection provider here to retrieve data)
  9. SaveViewState
  10. Render
  11. RenderChildren
  12. RenderContents
Note that during the 2nd postback, LoadViewState, is called, since in the 1st postback the click handler sets the value of the ViewState backed public property.

Friday, May 8, 2009

SharePoint Developer download Links

MOSS SP2 Available

SP2 = SP1 + InfraUpdate + Feb 2009 CumulativeUpdate.

  1. DB StatisticsTimer Job rebuilds content db indexes everytime to stop fragmentation and maintain performance.
  2. Automatic setting of read-only and updates the user interace so that users cannot perform tasks that write to db.
  3. Browser now supports IE 8, Firefox 2 and Firefox 3.

Windows SharePoint Services 3.0 Service Pack 2 (SP2) – English

http://www.microsoft.com/downloads/details.aspx?FamilyId=79BADA82-C13F-44C1-BDC1-D0447337051B&displaylang=en

 

The 2007 Microsoft Office Servers Service Pack 2 (SP2)

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b7816d90-5fc6-4347-89b0-a80deb27a082

 

List of sp2 are its details link

http://support.microsoft.com/kb/968170

Wednesday, May 6, 2009

SharePoint WSS Extensions 64-bit and 32-bit Visual Studio 2008

  1. Download Visual Studio 2008 extensions for Windows SharePoint Services 3.0, v1.3 - Mar 2009 CTP
  2. http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fb9d4b85-da2a-432e-91fb-d505199c49f6
  3. To Successfully Deploy Solutions follow these steps
  4. From Cmd, go to 
  5. C:\Inetpub\Adminscripts>
  6. and run the following.
  7. cscript adsutil.vbs set w3svc/1/root/NTAuthenticationProviders "Negotiate,NTLM" 
The last step is explained in detail the following link
(NTLM must be enabled on the IIS server. See the following for instructions on how to enable it:  http://support.microsoft.com/kb/215383)

Microsoft Sharepoint Language Codes

I have compiled from the following link
Please confirm before use. I used some of these and it was fine.

Arabic ar-sa
Bulgarian bg-bg
Catalan ca-es
Chinese - Simplified zh-cn
Chinese - Traditional zh-tw
Croatian hr-hr
Czech cs-cz
Danish da-dk
Dutch nl-nl
English en-us
Estonian et-ee
Finnish fi-fi
French fr-fr
German de-de
Greek el-gr
Hebrew he-il
Hindi hi-in
Hungarian hu-hu
Italian it-it
Japanese ja-jp
Korean ko-kr
Latvian lv-lv
Lithuanian lt-lt
Norwegian nb-no
Polish pl-pl
Portuguese - Brazil pt-br
Portuguese - Portugal pt-pt
Romanian ro-ro
Russian ru-ru
Serbian - Latin sr-latn-cs
Slovak sk-sk
Slovenian sl-si
Spanish es-es
Swedish sv-se
Thai th-th
Turkish tr-tr
Ukrainian uk-ua

Thursday, April 23, 2009

SharePoint Facts, Top 10 Benefits of Moss

 SharePoint is the fastest-growing product in the history of Microsoft
• Over 75 million licenses of SharePoint have been sold worldwide
• SharePoint is listed, by Forrester, as the number 1 portal product
• SharePoint is positioned as a leader within the Gartner Magic Quadrant for Horizontal Portals products
• Over 400 case studies have been published on SharePoint

Microsoft Office SharePoint Server 2007 Top 10 Benefits

Provide a simple, familiar, and consistent user experience.

Office SharePoint Server 2007 is tightly integrated with familiar client desktop applications, e-mail, and Web browsers to provide a consistent user experience that simplifies how people interact with content, processes, and business data. This tight integration, coupled with robust out-of-the-box functionality, helps you employ services themselves and facilitates product adoption.

Boost employee productivity by simplifying everyday business activities.

Take advantage of out-of-the-box workflows for initiating, tracking, and reporting common business activities such as document review and approval, issue tracking, and signature collection. You can complete these activities without any coding. Tight integration with familiar client applications, e-mail, and Web browsers provide you with a simple, consistent experience. Modifying and extending these out-of-the-box workflow processes is made easy through tools like Microsoft Office SharePoint Designer 2007 (the next release of Microsoft Office FrontPage).

Help meet regulatory requirements through comprehensive control over content.

By specifying security settings, storage policies, auditing policies, and expiration actions for business records in accordance with compliance regulations, you can help ensure your sensitive business information can be controlled and managed effectively. And you can reduce litigation risk for your organization. Tight integration of Office SharePoint Server 2007 with familiar desktop applications means that policy settings are rendered onto client applications in the Microsoft Office system, making it simpler for employees to be aware of and comply with regulatory requirements.

Effectively manage and repurpose content to gain increased business value.

Business users and content authors can create and submit content for approval and scheduled deployment to intranet or Internet sites. Managing multilingual content is simplified through new document library templates that are specifically designed to maintain a relationship between the original version and different translations of a document.

Simplify organization-wide access to both structured and unstructured information across disparate systems.

Give your users access to business data found in common line-of-business systems like SAP and Siebel through Office SharePoint Server 2007. Users can also create personalized views and interactions with business systems through a browser by dragging configurable back-end connections. Enterprise-wide Managed Document Repositories help your organizations store and organize business documents in one central location.

Connect people with information and expertise.

Enterprise Search in Office SharePoint Server 2007 incorporates business data along with information about documents, people, and Web pages to produce comprehensive, relevant results. Features like duplicate collapsing, spelling correction, and alerts improve the relevance of the results, so you can easily find what you need. 

Accelerate shared business processes across organizational boundaries.

Without coding any custom applications, you can use smart, electronic forms–driven solutions to collect critical business information from customers, partners, and suppliers through a Web browser. Built-in data validation rules help you gather accurate and consistent data that can be directly integrated into back-end systems to avoid redundancy and errors that result from manual data re-entry.

Share business data without divulging sensitive information.

Give your employees access to real-time, interactive Microsoft Office Excel spreadsheets from a Web browser through Excel Services running on Office SharePoint Server 2007. Use these spreadsheets to maintain and efficiently share one central and up-to-date version while helping to protect any proprietary information embedded in the documents (such as financial models).

Enable people to make better-informed decisions by presenting business-critical information in one central location.

Office SharePoint Server 2007 makes it easy to create live, interactive business intelligence (BI) portals that assemble and display business-critical information from disparate sources, using integrated BI capabilities such as dashboards, Web Parts, scorecards, key performance indicators (KPIs), and business data connectivity technologies. Centralized Report Center sites give users a single place for locating the latest reports, spreadsheets, or KPIs.

Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.

Office SharePoint Server 2007 is built on an open, scalable architecture, with support for Web services and interoperability standards including XML and Simple Object Access Protocol (SOAP). The server has rich, open application programming interfaces (APIs) and event handlers for lists and documents. These features provide integration with existing systems and the flexibility to incorporate new non-Microsoft IT investments.

Top 10 Benefits of Windows SharePoint Services

Improve team productivity with easy-to-use collaborative tools

Connect people with the information and resources they need. Users can create team workspaces, coordinate calendars, organize documents, and receive important notifications and updates through communication features including announcements and alerts, as well as the new templates for creating blogs and wikis. While mobile, users can take advantage of convenient offline synchronization capabilities.

Easily manage documents and help ensure integrity of content

With enhanced document management capabilities including the option to activate required document checkout before editing, the ability to view revisions to documents and restore to previous versions, and the control to set document- and item-level security, Windows SharePoint Services can help ensure the integrity of documents stored on team sites.

Get users up to speed quickly

User interface improvements in Windows SharePoint Services 3.0 include enhanced views and menus that simplify navigation within and among SharePoint sites. Integration with familiar productivity tools, including programs in the Microsoft Office system, makes it easy for users to get up to speed quickly. For example, users can create workspaces, post and edit documents, and view and update calendars on SharePoint sites, all while working within Microsoft Office system files and programs.

Deploy solutions tailored to your business processes

While standard workspaces in Windows SharePoint Services are easy to implement, organizations seeking a more customized deployment can get started quickly with application templates for addressing specific business processes or sets of tasks.

Build a collaboration environment quickly and easily

Easy to manage and easy to scale, Windows SharePoint Services enables IT departments to deploy a collaborative environment with minimal administrative time and effort, from simple, single-server configurations to more robust enterprise configurations. Because deployment settings can be flexibly changed, less pre-planning time is required and companies can get started even faster.

Reduce the complexity of securing business information

Windows SharePoint Services provides IT with advanced administrative controls for increasing the security of information resources, while decreasing cost and complexity associated with site provisioning, site management, and support. Take advantage of better controls for site life-cycle management, site memberships and permissions, and storage limits.

Provide sophisticated controls for securing company resources

IT departments can now set permissions as deep down as the document or item level, and site managers, teams, and other work groups can initiate self-service collaborative workspaces and tasks within these preset parameters. New features enable IT to set top-down policies for better content recovery and users, groups, and team workspace site administration.

Take file sharing to a new level with robust storage capabilities

Windows SharePoint Services supplies workspaces with document storage and retrieval features, including check-in/check-out functionality, version history, custom metadata, and customizable views. New features in Windows SharePoint Services include enhanced recycle bin functionality for easier recovery of content and improved backup and restoration.

Easily scale your collaboration solution to meet business needs

Quickly and easily manage and configure Windows SharePoint Services using a Web browser or command-line utilities. Manage server farms, servers, and sites using the Microsoft .NET Framework, which enables a variety of custom and third-party administration solution offerings.

Provide a cost-effective foundation for building Web-based applications

Windows SharePoint Services exposes a common framework for document management and collaboration from which flexible and scalable Web applications and Internet sites, specific to the needs of the organization, can be built. Integration with Microsoft Office SharePoint Server 2007 expands these capabilities further to offer enterprise-wide functionality for records management, search, workflows, portals, personalized sites, and more.

SharePoint Audience User Existance Check sample

if HR is the audience.
GetAudience("HR") give access denied error.

Use the following
 using (SPSite site = new SPSite(SPContext.GetContext(Context).Site.ID))
 {
   ServerContext context = ServerContext.GetContext(site);
   AudienceManager audManager = new AudienceManager(context);
   SPUser user = SPControl.GetContextWeb(Context).CurrentUser;
   foreach(Microsoft.Office.Server.Audience.Audience objAudience in audManager.Audiences)
   {
     if (objAudience != null && objAudience.AudienceName == "HR")
     {
        if (objAudience.IsMember(user.LoginName))
        {
//Your code goes here
        }
      }
   }
}

Friday, April 17, 2009

Changing the Language of Sites

Pre-Req: Specific Language Pack Installed. ( Korean )

SW_CD_Office_Srvr_Language_Pack_2007_64Bit_Korean_1_1_PA_BP_SvrISO_Onl_X12-34584.EXE

For changing the language of all sites in the content database to Korean the query would be:

UPDATE dbo.Webs SET Language = 1042

Changing the language of one site collection can be done with:

UPDATE dbo.Webs SET Language = 1042 WHERE SiteId = [[SiteCollectionId]]

And for changing the language of a single web or subsite you can use:

UPDATE dbo.Webs SET Language = 1042 WHERE Id = [[WebId]]

Thursday, April 16, 2009

Installing Language Packs on 64-bit Sharepoint Farms

Install additional language files on all the WFE’s

On your front-end Web server, click Start, point to Settings and then Control Panel, and then click Regional and Language Options, on the Languages tab, in the Supplemental Language Support section, select one or both of the following checkboxes:

·         Install files for complex script and right-to-left languages

·         Install files for East Asian languages

Restart the Servers.

The following installation sequence should be followed.

Remember to unblock the downloaded software from the properties.

Cancel the Configuration wizard for the first 3 installations.

For the last installation run the configuration wizard and restart the servers. 

1. Windows SharePoint Services 3.0 Language Pack x64

http://www.microsoft.com/downloads/details.aspx?FamilyId=45FA2637-EFC0-4ED6-8F47-8A013E9CE9D9&displaylang=en

2. Windows SharePoint Services 3.0 Language Pack Service Pack 1 (SP1), 64-Bit Edition

http://www.microsoft.com/downloads/details.aspx?FamilyId=C7CF102B-5DD8-4D86-BE5A-D56F63EF37A4&displaylang=en

3. SharePoint Server 2007 Language Pack (x64)

http://www.microsoft.com/downloads/details.aspx?familyid=318d8562-58bd-4329-b1f6-f1941a38bc7f&displaylang=en&tm

4. The 2007 Microsoft Office Servers Language Pack Service Pack 1 (SP1), 64-Bit Edition

http://www.microsoft.com/downloads/details.aspx?FamilyId=56681742-7D2C-4A6F-9178-DACD32AADC6C&displaylang=en

SharePoint Master Pages

Do not use the CTRL (K+D) option from the VS 2008 for the master pages.
This option applies the indenting and space formatting for the language as specified on the Formatting pane of the language in the Text Editor section of the Options dialog box.

I have noted extra space appearing just by that

Wednesday, April 15, 2009

SharePoint Object Model - Discussion

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;

namespace DiscussionBoardPoster
{
    class Program
    {
        static void Main(string[] args)
        {
            SPSite site = new SPSite("http://kopperla:2030/Movies");

            using (SPWeb web = site.OpenWeb())
            {

SPList list = web.Lists["Prince"];
                SPListItemCollection myListCol = list.Items;
                SPListItem disc = SPUtility.CreateNewDiscussion(myListCol, "Excellence2");
                disc["Body"] = "C Sharp is great";
                SPFieldUserValue oUser = new SPFieldUserValue(web, 289, "matcha");
                disc.Update();

                SPListItem reply = SPUtility.CreateNewDiscussionReply(disc);
                reply["Body"] = "I like C Sharp and VB.NET much";
                reply["Author"] = oUser;
                reply["Editor"] = oUser;
                reply["Created"] = DateTime.Parse("14 Jul 2006");
                reply["Modified"] = DateTime.Parse("14 Jul 2006");
                reply.Update();

                SPListItem reply2 = SPUtility.CreateNewDiscussionReply(reply);
                reply2["Body"] = "I like C Sharp and VB.NET too mubh";
                reply["Author"] = oUser;
                reply2["Editor"] = oUser;
                reply2["Created"] = DateTime.Parse("10/22/2008");
                reply2["Modified"] = DateTime.Parse("10/22/2008");
                reply2.Update();

                disc["Author"] = oUser;
                disc["Editor"] = oUser;
                disc["Last Updated"] = DateTime.Parse("10/22/2008");
                disc["Created"] = DateTime.Parse("10/22/2008");
                disc["Modified"] = DateTime.Parse("10/22/2008");
                disc.Update();


            }

        }
    }
}

Wednesday, April 8, 2009

Installing Adobe PDF iFilter 9 for 64-bit platforms

1. Download Link: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
2. Add Path C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin) to the Environmental Variables. Dummies Steps below.
(Right-click MyComputer)->Properties->Advanced->Environmental Variables->System Variables
selct PATH and click Edit, Click End button to reach the end to avoid replace.
Add ;C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin
Click OK, Ok, Ok to apply the changes and to close the System Properties Window
3. Restart the machine
4. Follow the steps in the following link. - Simplified version of the following version coming soon.

Thursday, March 12, 2009

How to increase Site or List Template Size

This blog solves the follwoing errors
1. "The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes"
2. "Failure decompressing data from a cabinet file"

For the first error,
To increase the Site or List template size, use the following STSADM command
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 83886080
80MB = 80*1024*1024 bytes = 83886080
The maximum size that can be set is 500MB

For the second error,
use the -nofilecompression attribute of export and import of STSADM.

Export Using
stsadm.exe -o export -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup

Import Using
stsadm.exe -o import -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup

Monday, March 9, 2009

Hiding search on all application screens

Application(_layout) screens usually don't display the search in the header.
There does appear to be a few screens out there that do, and depending on your design for application screens, this may throw a wrench in how your page looks.

To stop the search from showing in any application screen, add the following CSS style to your theme or alternate CSS file:

.ms-searchform {
display: none
}