<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint Global Services Blog</title>
	<atom:link href="http://blog.sharepointglobalservices.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sharepointglobalservices.com</link>
	<description>Providing consulting services one customer at a time</description>
	<lastBuildDate>Mon, 17 May 2010 14:53:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Printer-Friendly CSS and Print Preview in MOSS 2007</title>
		<link>http://blog.sharepointglobalservices.com/2010/02/07/printer-friendly-css-and-print-preview-in-moss-2007/</link>
		<comments>http://blog.sharepointglobalservices.com/2010/02/07/printer-friendly-css-and-print-preview-in-moss-2007/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 14:09:37 +0000</pubDate>
		<dc:creator>Gilles Urena</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Printer-Friendly]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://blog.sharepointglobalservices.com/?p=88</guid>
		<description><![CDATA[This post was driven by a request I recently received to add a Print Preview button on a SharePoint page.  When clicked, the Print Preview button will popup a window without any SharePoint navigational elements.  
I decided to create a separate CSS file (called PrintPreview.css) to overwrite the following MOSS CSS classes:

/* Hide MOSS Globa Links, title, banner and Top Nav area */
.ms-globalTitleArea {display:none;}
.ms-globalbreadcrumb [...]]]></description>
			<content:encoded><![CDATA[<p>This post was driven by a request I recently received to add a <strong>Print Preview</strong> button on a SharePoint page.  When clicked, the <strong>Print Preview</strong> button will popup a window without any SharePoint navigational elements.  </p>
<p>I decided to create a separate CSS file (called PrintPreview.css) to overwrite the following MOSS CSS classes:</p>
<div class="container">
/* Hide MOSS Globa Links, title, banner and Top Nav area */<br />
.ms-globalTitleArea {display:none;}<br />
.ms-globalbreadcrumb {display:none;}<br />
.ms-bannerContainer {display:none;}</p>
<p>/* Hide MOSS Page Title area */<br />
.ms-TitleAreaFrame {display:none;}<br />
.ms-titlearealeft {display:none;}<br />
.ms-titlearea {display:none;}<br />
.ms-pagetitle {display:none;}</p>
<p>/* Hide MOSS Bottom area */<br />
.ms-pagebottommarginleft {display:none;}<br />
.ms-pagebottommargin {display:none;}<br />
.ms-bodyareapagemargin {display:none;}<br />
.ms-pagebottommarginright {display:none;}</p>
<p>/* Hide MOSS quick launch area */<br />
.ms-navframe {display:none;}<br />
.ms-pagemargin {display:none;} </p>
<p>/* Hide MOSS Editor tool bar menu to prevent user from editing a comment*/<br />
.ms-rtetoolbarmenu {display:none;}</p>
<p>/* Remove border from MOSS body area */<br />
.ms-bodyareaframe {border:none 0px;}
</p></div>
<p>Since the <strong>Print Preview</strong> button was going to be added to an existing User Control (wrapped in a Web Part), I then added the following JavaScript code to the markup page of each user control.  Doing so will also allow you to hide specific elements you might not want to be displayed in the print preview window:</p>
<div class="container">
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>    //Function to print Web Part<br />
    function PrintPreview() {<br />
        var sUrl = window.location.href + &#8216;&amp;PrintPreview=true&#8217;;</p>
<p>        if (window.location.href.indexOf(&#8217;?') == -1) {<br />
            sUrl = window.location.href + &#8216;?PrintPreview=true&#8217;;<br />
        }</p>
<p>        window.open(sUrl, &#8220;_blank&#8221;, &#8220;width=800,height=600,resizable=1,toolbar=1,status=1,titlebar=1,menubar=1&#8243;, true);<br />
    }</p>
<p>    if (window.location.href.indexOf(&#8221;PrintPreview=true&#8221;) &gt; -1) {<br />
         //This is where you can hide custom elements by ID or name<br />
         //For example here is the code to hide a command button with an ID of &#8220;button1&#8243;<br />
        document.getElementById(&#8217;button1&#8242;).style.display = &#8216;none&#8217;;</p>
<p>        //Load PrintPreview CSS<br />
        SetPrinterFriendlyCSS();<br />
    }</p>
<p>    function SetPrinterFriendlyCSS() {<br />
        document.write(&#8217;&lt;link type=&#8221;text/css&#8221; href=&#8221;/_layouts/Customer/Application/PrintPreview.css&#8221; rel=&#8221;stylesheet&#8221; /&gt;&#8217;);<br />
    }</p>
<p>&lt;/script&gt;<br />
</DIV></p>
<p>To hide specific custom elements on your page, you could also add a &#8220;noprint&#8221; class attribute to each element you do not want to be rendered in the print preview mode.  The not print class will be added to the PrintPreview.css file:</p>
<div class="container">
/* Add NoPrint class to the original markup */<br />
.noprint {display:none;}
</div>
<p><br/></p>
<p>The last technique will be to overwrite the class attribute used by the element you are trying to hide:</p>
<div class="container">
/* Hide right column to hide custom action buttons in CustomXXX.ascx*/<br />
.col_actions {display:none;}
</div>
<p><br/></p>
<h2>About the Author</h2>
<p>Gilles Uréna is an independent SharePoint Consultant.  Gilles is the owner of SharePoint Global Services, an organization built from the ground up to provide consulting services on the SharePoint platform and surrounding technologies.  You can contact Gilles at <a href="mailto:gilles.urena@sharepointglobalservices.com">gilles.urena@sharepointglobalservices.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sharepointglobalservices.com/2010/02/07/printer-friendly-css-and-print-preview-in-moss-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrapping a User Control in a Web Part</title>
		<link>http://blog.sharepointglobalservices.com/2010/01/03/wrapping-a-user-control-in-a-web-part/</link>
		<comments>http://blog.sharepointglobalservices.com/2010/01/03/wrapping-a-user-control-in-a-web-part/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 23:24:24 +0000</pubDate>
		<dc:creator>Gilles Urena</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint Development]]></category>
		<category><![CDATA[User Control]]></category>
		<category><![CDATA[Web Part]]></category>

		<guid isPermaLink="false">http://blog.sharepointglobalservices.com/?p=38</guid>
		<description><![CDATA[This article demonstrates how to wrap a custom User Control in a Web Part and deploy it as a feature using WSPBuilder (http://www.codeplex.com/wspbuilder).
This article assumes you have some basic knowledge about WSPBuilder and how to deploy SharePoint assemblies as solution packages (wsp).
Solution Overview
The solution architecture consists of the following two projects:

A WSPBuilder Project using the [...]]]></description>
			<content:encoded><![CDATA[<p>This article demonstrates how to wrap a custom User Control in a Web Part and deploy it as a feature using WSPBuilder (<a href="http://www.codeplex.com/wspbuilder">http://www.codeplex.com/wspbuilder</a>).</p>
<p>This article assumes you have some basic knowledge about WSPBuilder and how to deploy SharePoint assemblies as solution packages (wsp).</p>
<h2>Solution Overview</h2>
<p>The solution architecture consists of the following two projects:</p>
<ul>
<li>A WSPBuilder Project using the Visual Studio project template installed during the setup of WSPBuilder.  This project will allow us to create the wsp file to be loaded in the SharePoint solutions store.</li>
<li>A classic ASP.Net Web Application Project to create our user control.  We will create custom post-build scripts to copy the user control to the <strong>CONTROLTEMPLATES</strong> sub-folder created in the WSPBuilder project.</li>
</ul>
<p><a class="wp-caption" title="Wrapping a User Control in a Web part" href="http://blog.sharepointglobalservices.com/wp-content/uploads/2010/01/Wrapping-a-User-Control-in-a-Web-Part.pdf" target="_blank">Please download the white paper here.</a></p>
<h2>About the Author</h2>
<p>Gilles Uréna is an independent SharePoint Consultant.  Gilles is the owner of SharePoint Global Services, an organization built from the ground up to provide consulting services on the SharePoint platform and surrounding technologies.  You can contact Gilles at <a href="mailto:gilles.urena@sharepointglobalservices.com">gilles.urena@sharepointglobalservices.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sharepointglobalservices.com/2010/01/03/wrapping-a-user-control-in-a-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Administrator and Developer Guide to Code Access Security in SharePoint Server 2007</title>
		<link>http://blog.sharepointglobalservices.com/2009/12/19/administrator-and-developer-guide-to-code-access-security-in-sharepoint-server-2007/</link>
		<comments>http://blog.sharepointglobalservices.com/2009/12/19/administrator-and-developer-guide-to-code-access-security-in-sharepoint-server-2007/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 17:41:48 +0000</pubDate>
		<dc:creator>Gilles Urena</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.sharepointglobalservices.com/?p=30</guid>
		<description><![CDATA[Another great article from Critical Path Training (Andrew Connell): Administrator and Developer Guide to Code Access Security in SharePoint Server 2007  (http://msdn.microsoft.com/en-us/library/ee909485.aspx)
Summary: Understand Microsoft .NET Framework code access security (CAS) and how to work with it in custom SharePoint solutions. Explore configuration options, get best practices for managing CAS in SharePoint environments, and walk through a [...]]]></description>
			<content:encoded><![CDATA[<p>Another great article from Critical Path Training (Andrew Connell): <a title="Administrator and Developer Guide to Code Access Security in SharePoint Server 2007" href="http://msdn.microsoft.com/en-us/library/ee909485.aspx" target="_blank">Administrator and Developer Guide to Code Access Security in SharePoint Server 2007  </a>(<a href="http://msdn.microsoft.com/en-us/library/ee909485.aspx">http://msdn.microsoft.com/en-us/library/ee909485.aspx</a>)</p>
<p>Summary: Understand Microsoft .NET Framework code access security (CAS) and how to work with it in custom SharePoint solutions. Explore configuration options, get best practices for managing CAS in SharePoint environments, and walk through a complex CAS scenario.</p>
<p><strong>Contents :</strong></p>
<ul>
<li>Introduction to Code Access Security and SharePoint</li>
<li>What Is Identity Security?</li>
<li>What Is Code Access Security?</li>
<li>Link Demands and Allowing Partially Trusted Callers</li>
<li>Understanding the Components of CAS in ASP.NET</li>
<li>Why CAS Is Important to SharePoint Administrators</li>
<li>Why CAS Is Important to SharePoint Developers</li>
<li>Working with CAS in SharePoint</li>
<li>Best Practices for Managing CAS in SharePoint</li>
<li>Real-World SharePoint and CAS Walkthrough</li>
<li>Conclusion</li>
</ul>
<p><!----></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sharepointglobalservices.com/2009/12/19/administrator-and-developer-guide-to-code-access-security-in-sharepoint-server-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Richmond SharePoint Saturday</title>
		<link>http://blog.sharepointglobalservices.com/2009/11/22/richmond-sharepoint-saturday/</link>
		<comments>http://blog.sharepointglobalservices.com/2009/11/22/richmond-sharepoint-saturday/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 01:02:22 +0000</pubDate>
		<dc:creator>Gilles Urena</dc:creator>
				<category><![CDATA[Announcement]]></category>

		<guid isPermaLink="false">http://blog.sharepointglobalservices.com/?p=12</guid>
		<description><![CDATA[Hi,
I just came back from presenting at the SharePoint Saturday event in Richmond, Va.  My session was about how to use Enterprise Content Types and Metadata with MOSS 2007. 
You can download the presentation in PDF or PPT format here.
]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I just came back from presenting at the SharePoint Saturday event in Richmond, Va.  My session was about how to use Enterprise Content Types and Metadata with MOSS 2007. </p>
<p>You can download the presentation in <a href="http://blog.sharepointglobalservices.com/wp-content/uploads/2009/11/Enterprise-Content-Types-in-MOSS-2007.pdf">PDF</a> or <a href="http://blog.sharepointglobalservices.com/wp-content/uploads/2009/11/Enterprise-Content-Types-in-MOSS-20071.pptx">PPT</a> format here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sharepointglobalservices.com/2009/11/22/richmond-sharepoint-saturday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
