The current time is

Showing posts with label Sharepoint. Show all posts
Showing posts with label Sharepoint. Show all posts

Sunday, March 22, 2009

"Unable to load client print control" bug is finally fixed !!!

I finally got this annoying “Printing” error fixed and out of my wayyyy... Yaaaaaaaaaay... So, find the steps here below :)))
First, you have to install the MS Security patch 956391 on all the client machines. They normally would get installed if these machines are running the "Windows Updates"...
Secondly, you should install SQL server Service Pack 3 on Reporting Services 2005: You can find the installation files at this link: http://www.microsoft.com/downloads/details.aspx?FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&DisplayLang=en
Finally, you should install Microsoft Report Viewer Redistributable 2005 Service Pack 1 on the Share Point machines. You can find the installation files at this link: http://www.microsoft.com/downloads/details.aspx?familyid=82833F27-081D-4B72-83EF-2836360A904D&displaylang=en

Now, sit back and enjoy printing all your reports :))))))

Monday, January 12, 2009

Some Sharepoint lessons learnt... Just today

Some lessons that I've learnt today:
1- The Sharepoint control "SharePoint:SPGridView"'s columns' HeaderText cannot be bounded in the HTML design view with server tag's values
2- Always do backups for the Sharepoint applications' web.config (I had so many huge issues just because I tried to re-format a web.config file in the visual studio). Those file are better never touched... Take veryyy good caution... :))

Thursday, May 29, 2008

So you think you can hide...

Wanna hide some sections of Sharepoint to change the look of your page...

Maybe you wanna check this snippet... Tells you most of them... But you'll need to do this by adding this pieces of code into a web part so that if it's used within the page... It would hide those elements... ;)

In other words, injected code... :D


Referrence: http://hardeepm.spaces.live.com/blog/cns!7877E3B0A44BBBF!156.entry

Wednesday, May 28, 2008

Your window.onload may cause problems in Sharepoint !!

Looks very smart of Sharepoint designers to have the scripting functions run in a systematic organized way... Personally, I love organization... Makes things defined and in order, not just haphazardly..

Sharepoint works as follows...
onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();",


So if one would like to execute some function onload of a page... doing so:
window.onload = function()
would really cause him trouble since he'll overwrite the sharepoint function calls...

So the smart way of doing this is to use:

_spBodyOnLoadFunctionNames.push('myFunction_01');
_spBodyOnLoadFunctionNames.push('
mySecondFunction');

This is how sharepoint really works ;) :) So we're following their way and voilaaa...

Reference: http://blogs.tamtam.nl/mart/UsingWindowonloadInSharePointPages.aspx

Tuesday, May 27, 2008

Heck...Parser error all of a sudden

Newbie in Sharepoint I got this error... Immediately afterwards, I had to say OUCH... That's because I simply did nothing to get an error... I was only trying to create a new master page to use... That's all :))
I even undid any changed and still the error was there...
It said the following:

Parser Error Message: Data at the root level is invalid. Line 1, position 1.
Source Error:
Line 1:
Line 2:
Line 3:
Source File: /App_Browsers/compat.browser Line: 1

After some searching, I found the cause of this really strange behavior...
Some folders are created named "_vti_cnf" just beside the file "compat.browser".
This folder contained another compat.browser file containing some metadata. I
deleted this folder and this fixed the problem.

However, I hope this doesn't cause more troubles... If I find out anything, definitely I'll post it here :))