Skip to main content

Posts

Set Default Zoom Level in Visio Web Access Web Part in SharePoint 2010

Here i got a problem of Visio Web Part (actually problem for me) It is changing zoom level to view maxim as possible. so in my requirement i want it to be 100 in default. So i opened the page (That is having the Visio Web Part ) in SharePoint Designer and  search the word “Zoom” and it returned Web part configuration line as follows. ViewSettings="{"pageIndex":0,"viewBounds":{"x":-97,"y":-44,"width":938,"height":775}," zoomValue":100 }" here you can see zoom level is specified. So i changed it to 100 and save it back.   hooray…. It worked for me.

SharePoint 2010 Developer Power Tools

The SharePoint Software Factory is a Visual Studio Extension helping SharePoint newbies, as well as experienced developers to create, manage and deploy SharePoint solutions without having to know every tiny XML and C# secret. SPSF provides a huge collection of helpful utilities for development, debugging and deployment of SharePoint standard artifacts and is fully compatible with SharePoint 2007/2010 and Visual Studio 2008/2010 (in any combination) .. This is very powerful developer extension for visual studio. This is worth to try .. http://spsf.codeplex.com/

The error "The specified DSN contains an architecture mismatch between the Driver and Application"

This error happed when i tried to run MS access database application in windows 7. Then i found this is because of trying to run access drivers in 64 bit machine. I downloaded following Microsoft Access Database Engine 2010 Redistributable and it worked for me. http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255

window.document.getElementById not working in the SharePoint 2010

recently i came across a problem with getElementById. I used this function in the master page in side a JavaScript but it returned  an error. I don't know why it happened and still finding the cause. however i used a alternative  method to archive this task. var item = window.document.getElementsByName( "tagName" )[0]; This worked for me.

How to Customize SharePoint List Content Display using Content Query Web Part

Here I'm going to describe how we can use Content Query Web Part to Style SharePoint List. Thus Assume we are having a  SharePoint List Called Projects with Following Fields. As you already knew default look and feel would be like below. Now I'm going to render this list in to format something like below. Step One First you need to define Some names for these place holders ( Yeh., I know this do not make any sense to you. But don’t worry just do the step ). Thus I'm going to define these columns as follows. Title –> MyTitle Logo –> MyLogo Project Summary –> MySummary Project Description –> MyDesc Step Two Now you want to define a XSL Style Sheet using these names. Therefore I'm going to use <table> to layout the list item as below. < xsl:template name ="MyStyle" match ="Row[@Style='MyStyle']" mode ="itemstyle" >   < table border ='1' > < tr > < td ...

How to use SharePoint Feature to Activate and Deactivate Custom SharePoint Master page

Below example only set the Master page Url but not the custom master page URL. thus Layout pages will be same after you deploy the master page.  You can also change the Custom master page URL also. Feature Activation public override void FeatureActivated( SPFeatureReceiverProperties properties) { SPWeb web = properties.Feature.Parent as SPWeb ; string urlMaster; string urlCustom; if ( @"/" .Equals(web.ServerRelativeUrl)) { urlMaster = @"/_catalogs/masterpage/BLLICT.master" ; urlCustom = @"/_catalogs/masterpage/v4.master" ; } else { urlMaster = string .Concat(web.ServerRelativeUrl , @"/_catalogs/masterpage/BLLICT.master" ); urlCustom = string .Concat(web.ServerRelativeUrl , @"/_catalogs/masterpage/v4.master" ); } web.MasterUrl = urlMaster; web.CustomMasterUrl = urlCustom; web.Update(); } Feature Deactivation (Reverse to Original Master) public override void Feat...