<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5391980973043610960</id><updated>2012-01-02T20:44:11.423-08:00</updated><category term='editing the display headings calendar'/><category term='Sharepoint archive senter'/><category term='Multi-Touch'/><category term='Records Centre'/><category term='Document Viewer Webpart MOSS'/><category term='Energies SharePoint'/><category term='Sharepoint'/><category term='Sharepoint webparts'/><category term='host header problem'/><category term='MOSS'/><category term='WPF 4.0'/><category term='Tradining SharePoint'/><category term='Calendar List'/><category term='Banking SharePoint'/><category term='Dynamics AX 4.0 SharePoint'/><category term='Programatically create webpart pages'/><category term='Sharepoint Timer Job'/><title type='text'>Sharepoint &amp; Office development</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-3839570013800004802</id><published>2009-10-17T02:13:00.000-07:00</published><updated>2009-10-17T02:20:51.243-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Energies SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Banking SharePoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Tradining SharePoint'/><title type='text'>Monte Carlo, SharePoint, Energies Trading and Office 2007 userabilty.</title><content type='html'>Hi Guy's,&lt;br /&gt;&lt;br /&gt;If you remember correctly I had previosuly created two posts showing Office 2007 Applications producing Monte Carlo risk simulations by using Application task panes and adhering to the Office 2007 fluent ribbon standards laid down my Microsoft.&lt;br /&gt;&lt;br /&gt;I had to remove this screen casts due to popfly shutting down, so I want to blogg a little about what I have just finished for a Large scale energies and financial BI system here in Norway.&lt;br /&gt;&lt;br /&gt;We have SQL Server Analysis, SharePoint, Excel Services, Performance Point and Oracle. Were using a combination of WCF and Web Services to communicate information. We are using Web Applications archeiecture and Office 2007 clients for UI Elements.&lt;br /&gt;&lt;br /&gt;Our development enviroment is DB (SQL/PLSQL), .NET 3.5, WPF/Silverlight, oXML, VBA, VSTO, SharePoint API/WebServices.&lt;br /&gt;&lt;br /&gt;More coming soon...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-3839570013800004802?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/3839570013800004802/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/10/monte-carlo-sharepoint-energies-trading.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3839570013800004802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3839570013800004802'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/10/monte-carlo-sharepoint-energies-trading.html' title='Monte Carlo, SharePoint, Energies Trading and Office 2007 userabilty.'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-2678763572733355600</id><published>2009-10-07T04:11:00.000-07:00</published><updated>2009-10-07T04:40:08.501-07:00</updated><title type='text'>OCR SharePoint Style</title><content type='html'>Hi Folks,&lt;br /&gt;&lt;br /&gt;How about a Workflow in SharePoint with built in OCR (Opitcal Character Recognition)?&lt;br /&gt;&lt;br /&gt;There are a few solutions that provide this but after doing a little research I realised that the Office 2007 applications come with OCR scanning OOB. So I went in search of coding against this office component.&lt;br /&gt;&lt;br /&gt;Turns out that a nice little NameSpace (using .NET of course) allows you to minipulate OCR on images. You must have Office 2007 client installed on the Server, so this is one draw back but then again I believe considering the amount you save its worth it.&lt;br /&gt;&lt;br /&gt;So we start of by creating a SharePoint Worfklow in (STATE MACHINE/SEQUENTIAL) Visual Studio 2008, Associate it to the correct lists, add some actions and then when you get to your OCR scanning code part reference the following DLL's:&lt;br /&gt;&lt;br /&gt;DocumentFormet.OpenXML    - This one is from the OpenXML SDK from Microsoft.&lt;br /&gt;MODI - This one is from Office 2003/7 Scanning software.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Add the following using statements:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;using DocumentFormat.OpenXml.Packaging;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;using DocumentFormat.OpenXml;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Add a Class wide variable:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;MODI.Document md;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;* If you dont have MODI available its becuase you probably didnt install it when configuring the installation of Office. If you need to goto Control pannel &gt; add/remove programs &gt; Office 2007 &gt; Change then right click the Scanning software and select "intall now" option (not on "install on first time ran"!)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Bellow is a function that will allow you to perform OCR on a TIFF.&lt;br /&gt;&lt;br /&gt;private void OCR(String Name)&lt;br /&gt;{&lt;br /&gt;           md.Create(Name);&lt;br /&gt;           md.OCR(MODI.MiLanguages.miLANG_NORWEGIAN, true, true);&lt;br /&gt;&lt;br /&gt;           string strText = String.Empty;&lt;br /&gt;&lt;br /&gt;           MODI.Image image = (MODI.Image)md.Images[0];&lt;br /&gt;           MODI.Layout layout = image.Layout;&lt;br /&gt;&lt;br /&gt;           for (int i = 0; i &lt; layout.Words.Count; i++)&lt;br /&gt;                  {&lt;br /&gt;                      MODI.Word word = (MODI.Word)layout.Words[i];&lt;br /&gt;                      if (strText.Length &gt; 0)&lt;br /&gt;                          {&lt;br /&gt;                              strText += " ";&lt;br /&gt;                          }&lt;br /&gt;                      strText += word.Text;&lt;br /&gt;                  }&lt;br /&gt;             md.Close(false);&lt;br /&gt;       // do something with the Words here...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Update soon,....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-2678763572733355600?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/2678763572733355600/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/10/ocr-sharepoint-style.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2678763572733355600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2678763572733355600'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/10/ocr-sharepoint-style.html' title='OCR SharePoint Style'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-3730897369490493598</id><published>2009-07-22T03:44:00.000-07:00</published><updated>2009-10-07T04:07:40.347-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Multi-Touch'/><category scheme='http://www.blogger.com/atom/ns#' term='WPF 4.0'/><title type='text'>Multi-Touch SharePoint Document Management System</title><content type='html'>Hi Guys,&lt;br /&gt;&lt;br /&gt;Apologies, I've got a few updates to do... Ive been busy with some projects recently. Of which one of them I am extremely proud to unveil. I have been working on a multi-touch sufrace similar to that of Microsofts but at much reduced price.&lt;br /&gt;&lt;br /&gt;For example check out this youtube video (I will be posting all the screencasts and pics up later next month), but this will give you the idea.&lt;br /&gt;&lt;br /&gt;&lt;object width="400" height="225"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4030910&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1"&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=4030910&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://vimeo.com/4030910"&gt;Maximum PC's Multitouch Surface Computer&lt;/a&gt; from &lt;a href="http://vimeo.com/user1546234"&gt;Maximum PC&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;So I set forth and build one of these multi-touch PC's as the Maximum guys above have shown. However I didnt want to build new applications in Action Script and Flash, although it was cool just to play around with the samples that can be found open source in flash.&lt;br /&gt;&lt;br /&gt;So I downloaded WPF 4.0 CTP and Visual Studio 2010 with Windows 7 also. Becuase Windows 7 has an API for 2 finger touch (I will explain what that means in a minute) and WPF 4.0 natively also it meant that I could start building my application very quickly.&lt;br /&gt;&lt;br /&gt;For example and this is the really cool part... In WPF 4.0 we have methods dedicated to Touch. For example, the onfingerdown method...&lt;br /&gt;&lt;br /&gt;On hold, sorry guys, but a client has asked that I keep this back for a while before release all the screen shots etc... Will be here soon as possible, if you want any guidence please just ask.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-3730897369490493598?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/3730897369490493598/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/07/multi-touch-sharepoint-document.html#comment-form' title='2 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3730897369490493598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3730897369490493598'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/07/multi-touch-sharepoint-document.html' title='Multi-Touch SharePoint Document Management System'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-2976082560825161757</id><published>2009-07-20T06:03:00.000-07:00</published><updated>2009-07-20T06:08:35.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamics AX 4.0 SharePoint'/><title type='text'>Dynamics AX 4.0 - MOSS 2007 Intergration</title><content type='html'>I've been away for while working on some really good WPF Sharepoint &amp;amp; Office Apps that will be put up later on.&lt;br /&gt;&lt;br /&gt;This article will be in a series of articles talking about how to Develop and deploy Microsoft Dynamics Axapt 4.0 with MOSS 2007 Intergration.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Business Requirement:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Dyanmics AX 4.0 Information in federated combined MOSS 2007 search. Document handling through MOSS 2007 (Work flow, ECM (CHECKIN/OUT), Office 2007 pane intergration using WPF for PDF preview from axapta 4.0 and more..)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Things to keep in mind:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Dynamics AX 4.0 is build NOT UPON .NET!!! This is very important when designing your systems, you will need to have something called the BDC (Not MOSS BDC) But the Business Data Connector. This will be explained in more detail.&lt;br /&gt;&lt;br /&gt;You will also need to have the Dynamics AX Enterprise portal templates, webparts and Site template defintitions. I have create adoc versions of these but my recommendations are that you use the installer found on the Dynamics AX setup disc.&lt;br /&gt;&lt;br /&gt;Update coming soon....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-2976082560825161757?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/2976082560825161757/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/07/dynamics-ax-40-moss-2007-intergration.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2976082560825161757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2976082560825161757'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/07/dynamics-ax-40-moss-2007-intergration.html' title='Dynamics AX 4.0 - MOSS 2007 Intergration'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-7143197089286872164</id><published>2009-04-22T22:07:00.000-07:00</published><updated>2009-04-22T22:17:47.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Document Viewer Webpart MOSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Calendar List'/><category scheme='http://www.blogger.com/atom/ns#' term='editing the display headings calendar'/><title type='text'>Calendar List - editing the display headings.</title><content type='html'>&lt;span style="font-weight: bold;font-size:180%;" &gt;Calendar List - editing the display headings.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;&lt;br /&gt;When creating a Calendar list in SharePoint you cannot edit the displayed columns. For example if I want to display the "created by" in the title along with the Description it isn’t possible with the base definition out-of-box from this list view.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;Ok, this part isn’t one of my more glorious moments but here you go. To add this functionality simply add another Calendar view to your Calendar???? - Yes this really works, to be able to edit the display data on the Calendar view you have to add another Calendar view then modify its properties. Simply click&lt;br /&gt;&lt;br /&gt;1. In this Calendar list click Views, create view give it some details. Set this to your default if you wish.&lt;br /&gt;2. Then click views modify this view then you can add additional information to the title etc...&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;James&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-7143197089286872164?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/7143197089286872164/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/04/calendar-list-editing-display-headings.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7143197089286872164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7143197089286872164'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/04/calendar-list-editing-display-headings.html' title='Calendar List - editing the display headings.'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-7193699770408158737</id><published>2009-03-17T06:36:00.000-07:00</published><updated>2009-03-17T06:40:16.698-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint Timer Job'/><category scheme='http://www.blogger.com/atom/ns#' term='Records Centre'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Sharepoint Timer Job - Records Management</title><content type='html'>&lt;span style="font-size:180%;"&gt;Cooming soon....&lt;/span&gt;Sharepoint Timer Job - Records Management MOSS&lt;br /&gt;&lt;br /&gt;Business Case:&lt;br /&gt;&lt;br /&gt;I have a few lists that contain documents items etc... These items needed to be sent to the Records Center when they are over 30 days old. I looked at using a workflow but this didnt fit the solution, So i created a sharepoint timer job that would poll the lists I choose, check for created date and then send the to the Archive center.&lt;br /&gt;&lt;br /&gt;From the Archive Center I have set records routing based upon metadata (not just content type).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-7193699770408158737?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/7193699770408158737/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/03/sharepoint-timer-job-records-management.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7193699770408158737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7193699770408158737'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/03/sharepoint-timer-job-records-management.html' title='Sharepoint Timer Job - Records Management'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-3646486561877404497</id><published>2009-03-15T09:39:00.001-07:00</published><updated>2009-03-15T09:42:19.738-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='host header problem'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint archive senter'/><title type='text'>Sharepoint Archive Centre Problem - Host header</title><content type='html'>Hi guys,&lt;br /&gt;&lt;br /&gt;Quick one here, if you have any problems with your farm deployment of MOSS in regards to deployment of the archive center, make sure you ensure your host header information is updated.&lt;br /&gt;&lt;br /&gt;For example located your hosts.txt file (sometimes host.txt) add the IP and the Host header name for the portal dployment. You might have to do this for serval servers in the farm but its not a huge problem.&lt;br /&gt;&lt;br /&gt;James&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-3646486561877404497?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/3646486561877404497/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/03/arkive-centre-problem-host-header.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3646486561877404497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/3646486561877404497'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/03/arkive-centre-problem-host-header.html' title='Sharepoint Archive Centre Problem - Host header'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-723324114111947479</id><published>2009-02-24T05:27:00.000-08:00</published><updated>2009-02-24T05:56:32.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programatically create webpart pages'/><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint webparts'/><title type='text'>Create Sharepoint WebPart Pages Programatically</title><content type='html'>&lt;span style="font-size:180%;"&gt;Create Sharepoint WebPart Pages Programatically:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok so if anyone has wanted to create SharePoint 2007 webpart pages programatically would have probably come up against a few challenges.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Business Case:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A Windows service would create new dashboard pages and add Excel Web Access Web Parts to the page.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 1 - Create a Web Part page Programatically.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Open Visual Studio (Im using 2008) and create a console application.&lt;br /&gt;&lt;br /&gt;Add the following references and then the corrosponding using statements bellow:&lt;br /&gt;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;using Microsoft.SharePoint.Publishing;&lt;br /&gt;using Microsoft.SharePoint.Administration;&lt;br /&gt;&lt;br /&gt;Add the following code (I constucted this as public methods so I called call them from a test project but up to you)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;public void FillPublishingWebWithPages(string publishingSiteCollection, int pagesToCreate)&lt;br /&gt;{&lt;br /&gt;string Page = null;&lt;br /&gt;string ZoneID = null; ;&lt;br /&gt;string workbookURI = null;&lt;br /&gt;SPSite SiteCollection = null;&lt;br /&gt;SPWeb site = null;&lt;br /&gt;PublishingSite publishingSite = null;&lt;br /&gt;PublishingWeb publishingWeb = null;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;// get the PublishingWeb&lt;br /&gt;SiteCollection = new SPSite(publishingSiteCollection);&lt;br /&gt;site = SiteCollection.RootWeb;&lt;br /&gt;publishingSite = new PublishingSite(SiteCollection);&lt;br /&gt;publishingWeb = PublishingWeb.GetPublishingWeb(site);&lt;br /&gt;// Article Page content type&lt;br /&gt;//SPContentTypeId articleContentTypeID = new SPContentTypeId("0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D");&lt;br /&gt;SPContentTypeId articleContentTypeID = new SPContentTypeId("0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4");&lt;br /&gt;// get the ArticleLeft.aspx Page Layout&lt;br /&gt;PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts(articleContentTypeID);&lt;br /&gt;Console.WriteLine(layouts[1]);&lt;br /&gt;PageLayout articlePageLayout = layouts[1];&lt;br /&gt;// create a temp name...&lt;br /&gt;string pageName = DateTime.Now.ToString("yyyyMMdd-HHmmss");&lt;br /&gt;// create the specified number of pages&lt;br /&gt;for (int i = 0; i &lt; pagesToCreate; i++)&lt;br /&gt;{&lt;br /&gt;//Page = publishingWeb.GetPublishingPages().Add(string.Format("{0}_Aldersfordelt_{1}.aspx", pageName, i), articlePageLayout).ToString();&lt;br /&gt;PublishingPage newPage = publishingWeb.GetPublishingPages().Add(string.Format("{0}_Aldersfordelt_{1}.aspx", pageName, i),articlePageLayout);&lt;br /&gt;newPage.Update();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch (Exception ex)&lt;br /&gt;{&lt;br /&gt;throw new Exception(ex.Message);&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;// properly dispose of the resources&lt;br /&gt;site.Dispose();&lt;br /&gt;SiteCollection.RootWeb.Dispose();&lt;br /&gt;SiteCollection.Dispose();&lt;br /&gt;}&lt;br /&gt;workbookURI = "http://mossutv1/Rapports/Aldersfordelt/Aldersfordelt%2023.11.2008%20(2008-11-30%2000_50_53).xlsx";&lt;br /&gt;ZoneID = "1";&lt;br /&gt;AddEWAWebPart ae = new AddEWAWebPart();&lt;br /&gt;Page = "http://mossutv1:88/Pages/20090224-140052_Aldersfordelt_0.aspx";&lt;br /&gt;ae.Prepare(Page, workbookURI, ZoneID);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Ovbiously you will have to change the Page, WorkBookURI, ZoneID and URL headings etc....  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Step 2: Create the Class for the AddEWAWebPart method prepare you see above.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Ok so this is simple, just right create a class ("I called mine AddEWAWebPart") then create a public method or private which ever you are working with. And use the code found from Microsoft on this link.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb871637.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb871637.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Remember that your not using a console app, so you will have to collect the parameters as I have send to the prepare method above.&lt;br /&gt;&lt;br /&gt;Any help just let me know.&lt;br /&gt;&lt;br /&gt;James Bruiners&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-723324114111947479?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/723324114111947479/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/02/create-sharepoint-webpart-pages.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/723324114111947479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/723324114111947479'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/02/create-sharepoint-webpart-pages.html' title='Create Sharepoint WebPart Pages Programatically'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-7921040327380814191</id><published>2009-01-29T05:28:00.000-08:00</published><updated>2009-01-29T05:30:05.210-08:00</updated><title type='text'></title><content type='html'>Preview of Risk Anlaysis (Monte Carlo &amp;amp; Historic) using Excel 2007 in the Elite 3 Framework.&lt;br /&gt;&lt;br /&gt;&lt;embed src="http://images.video.msn.com/flash/soapbox1_1.swf" width="432" height="364" id="61golfvv" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" pluginspage="http://macromedia.com/go/getflashplayer" flashvars="c=v&amp;v=d71bc86d-bf99-4c4c-89e9-8f271d5195f1&amp;ifs=true&amp;fr=msnvideo&amp;mkt=nl-NL"&gt;&lt;/embed&gt;&lt;noembed&gt;&lt;br/&gt;&lt;a href="http://video.msn.com/video.aspx?vid=d71bc86d-bf99-4c4c-89e9-8f271d5195f1" target="_new" title="Elite 3 - Aldersfordelt Report Risk analysis"&gt;Video: Elite 3 - Aldersfordelt Report Risk analysis&lt;/a&gt;&lt;/noembed&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-7921040327380814191?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/7921040327380814191/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/preview-of-risk-anlaysis-monte-carlo.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7921040327380814191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7921040327380814191'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/preview-of-risk-anlaysis-monte-carlo.html' title=''/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-2738019991981316060</id><published>2009-01-29T05:24:00.001-08:00</published><updated>2009-01-29T05:28:43.706-08:00</updated><title type='text'>My Video's</title><content type='html'>Preview of Elite 3 Excel - PowerPoint Intergration:&lt;br /&gt;&lt;br /&gt;&lt;embed id="9mdnj8c0" pluginspage="http://macromedia.com/go/getflashplayer" src="http://images.video.msn.com/flash/soapbox1_1.swf" width="432" height="364" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" flashvars="c=v&amp;amp;v=2bcd1301-1056-4208-b1bb-0870f222bcc9&amp;amp;ifs=true&amp;amp;fr=msnvideo&amp;amp;mkt=nl-NL"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;noembed&gt;&lt;/noembed&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-2738019991981316060?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/2738019991981316060/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/my-videos.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2738019991981316060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/2738019991981316060'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/my-videos.html' title='My Video&apos;s'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-7919023586347800090</id><published>2009-01-29T04:23:00.000-08:00</published><updated>2009-01-29T05:13:47.159-08:00</updated><title type='text'>Excel Web Parts (Without MOSS/Excel Services)</title><content type='html'>&lt;span style="font-size:130%;"&gt;Get Full Excel 2007 web part access without Excel Services.&lt;/span&gt;&lt;br /&gt;&lt;em&gt;Plus learn how to create your own preview pane from search results&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;Business Case:&lt;br /&gt;&lt;br /&gt;Using SharePoint to indexing oracle, exchange server, file store, sharepoint areas proves really useful, further more searching on the material is superb. However one area that I noted was that as the search results grow so did the time it took a user to locate the correct document. Especially if they were having to open and close mutiple documents, websites, lists etc...&lt;br /&gt;&lt;br /&gt;The preview pane is a webpart that again uses the CEWP, IFRAME, REGISTERY settings to display (on mouse over in mycase) the search result.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_UMw1sov7INk/SYGgateCo3I/AAAAAAAAABE/eYrv4wyNFy4/s1600-h/blogging1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5296691017507054450" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 211px" alt="" src="http://4.bp.blogspot.com/_UMw1sov7INk/SYGgateCo3I/AAAAAAAAABE/eYrv4wyNFy4/s320/blogging1.jpg" border="0" /&gt;&lt;/a&gt;So....&lt;br /&gt;After following on from the last blog about previewing office documents I though i would show you a nifty way of doing this from a Search Result. I am using MOSS Enterprise here hence the search results pages are looking like they came from a Enterprise tempalte (becuase they did)... But you can easily modify this to work with WSS 3.0 or MOSS standard.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What you can see above is a search result (with some additional webparts for filtering...Facted Search on codeplex if you want) then Ive added a content editor webpart which emulates a IFRAME.&lt;br /&gt;&lt;br /&gt;To finish it all of we simply edit the XSLT to send a row of data (i.e the path) to the Iframe. In between this we must edit the registery to accept these things.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Part 1:&lt;/p&gt;&lt;p&gt;Open notepad and past the following into it.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#3366ff;"&gt;Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Document.8]"BrowserFlags"=dword:80000024[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.RTF.8]"BrowserFlags"=dword:80000024[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Document.12]"BrowserFlags"=dword:80000024[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.DocumentMacroEnabled.12]"BrowserFlags"=dword:80000024[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Sheet.8]"BrowserFlags"=dword:80000A00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Sheet.12]"BrowserFlags"=dword:80000A00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.SheetMacroEnabled.12]"BrowserFlags"=dword:80000A00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.SheetBinaryMacroEnabled.12]"BrowserFlags"=dword:80000A00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.Show.8]"BrowserFlags"=dword:800000A0[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.Show.12]"BrowserFlags"=dword:800000A0[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.ShowMacroEnabled.12]"BrowserFlags"=dword:800000A0[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.SlideShow.8]"BrowserFlags"=dword:800000A0[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.SlideShow.12]"BrowserFlags"=dword:800000A0[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.SlideShowMacroEnabled.12]"BrowserFlags"=dword:800000A0&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Save as AnyGivenFileName.reg&lt;/p&gt;&lt;p&gt;* note you must consider business related needs when openning Office documents in the browser!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then double click your newly created file and it will add the registery settings so that Office documents can be opened in the browesr (including full ribbon support! :)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Part 2: Now go over to your Sharepoint Search results page.&lt;/p&gt;&lt;p&gt;Edit the core results and pull up its XSLT. I prefer using Visual Studio to edit XSLT AND XML but it doesnt matter.&lt;/p&gt;&lt;p&gt;&lt;a href="http://4.bp.blogspot.com/_UMw1sov7INk/SYGjQSibZcI/AAAAAAAAABM/8fZsLyF0wZE/s1600-h/blogging2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5296694137013888450" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 205px" alt="" src="http://4.bp.blogspot.com/_UMw1sov7INk/SYGjQSibZcI/AAAAAAAAABM/8fZsLyF0wZE/s320/blogging2.jpg" border="0" /&gt;&lt;/a&gt;Under:&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;span class="srch-Title"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#3366ff;"&gt;span class = "srch-Title"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the following to the a href link parameters:&lt;br /&gt;&lt;span style="font-size:85%;color:#3366ff;"&gt;onmouseover="window.open('{$url}','myframe')"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the above case it will react to the mouse over event, but if you dont want that then just omitt.&lt;br /&gt;Copy the XSLT from your editor, then past it back into the Core Results webpart XSLT.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Part 3:&lt;br /&gt;Add the content editor webpart to your search results page (I prefer in the right webpart zone) and you probably want to give it a fixed width and height.&lt;br /&gt;&lt;br /&gt;Add a IFRAME Snippt named "myframe" (same as XSLT above ref essentially) to a CEWP.&lt;br /&gt;See bellow in previous blogg if your not sure how to add a IFRAME to the CEWP.&lt;br /&gt;&lt;br /&gt;Then perform a search results hover over the title and it will load it in side your webpart previewer.&lt;br /&gt;&lt;br /&gt;With Excel, Word you will get full ribbon control so on so forth....So you can take this principle and use it for Excel Web Access should you want to.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;James Bruiners&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-7919023586347800090?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/7919023586347800090/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/excel-web-parts-without-mossexcel.html#comment-form' title='1 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7919023586347800090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/7919023586347800090'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/excel-web-parts-without-mossexcel.html' title='Excel Web Parts (Without MOSS/Excel Services)'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UMw1sov7INk/SYGgateCo3I/AAAAAAAAABE/eYrv4wyNFy4/s72-c/blogging1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-1249802383808716280</id><published>2009-01-05T06:35:00.000-08:00</published><updated>2009-02-16T10:13:25.122-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Document Viewer Webpart MOSS'/><title type='text'>Document Viewer Webpart MOSS</title><content type='html'>Office 2007 Document Viewer WebPart (No code required)&lt;br /&gt;&lt;br /&gt;The business case was that we had a few large lists that had documents from Office 2007. The problem was the amount of time it took to open each document then preview it in a new instance of the Office application (if you computer is having a slow day this means a lot of wasted time) and then if it was incorrect you would have to open a new one and start the whole process again.&lt;br /&gt;&lt;br /&gt;So what if we could preview Office documents like shown bellow.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_UMw1sov7INk/SWIbF_HC38I/AAAAAAAAAAM/J9Q-QXQMR6I/s1600-h/Document+Viewer+WebPart.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5287818702140661698" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 551px; CURSOR: hand; HEIGHT: 305px" alt="" src="http://2.bp.blogspot.com/_UMw1sov7INk/SWIbF_HC38I/AAAAAAAAAAM/J9Q-QXQMR6I/s320/Document+Viewer+WebPart.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All we have here is a list and when you click one of the hyperlinks it will open the document in the preview webpart bellow :) Nice....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step one goto your sharepoint server:&lt;br /&gt;&lt;br /&gt;Open Explorer&lt;br /&gt;Click Tools&lt;br /&gt;Click Folder Options (at the bottom)&lt;br /&gt;Click "File types" tab - it will then populate your file types registered on the server.&lt;br /&gt;Go down to DOCX&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_UMw1sov7INk/SWId8JIEH7I/AAAAAAAAAAU/op7GCKAS8_I/s1600-h/Document+Viewer+WebPart+2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5287821831565483954" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 259px" alt="" src="http://1.bp.blogspot.com/_UMw1sov7INk/SWId8JIEH7I/AAAAAAAAAAU/op7GCKAS8_I/s320/Document+Viewer+WebPart+2.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now click the advanced button and&lt;br /&gt;you will get some windows.&lt;br /&gt;&lt;br /&gt;No select the tick box Browse in same window! Click ok a few times.&lt;br /&gt;&lt;br /&gt;* I wouldnt recommend you play around with much of these settings especially the DDE messaging unless you really know what you are doing! But openning in same browser is ok...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Restart internet explorer.&lt;br /&gt;&lt;br /&gt;Now create a document library you want to store you Documents into. If you already have one then you can use this, however I would recommend creating a fresh one for testing first.&lt;br /&gt;&lt;br /&gt;Upload a few documents to the document library. In this case Word 2007 files.&lt;br /&gt;&lt;br /&gt;Now edit the page where the document library is shown, click site settings, edit page.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_UMw1sov7INk/SWJKArXH28I/AAAAAAAAAAc/lUYysdLjYRw/s1600-h/Document+Viewer+WebPart+3.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5287870287986547650" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 177px" alt="" src="http://2.bp.blogspot.com/_UMw1sov7INk/SWJKArXH28I/AAAAAAAAAAc/lUYysdLjYRw/s320/Document+Viewer+WebPart+3.jpg" border="0" /&gt;&lt;/a&gt; Here you can add a webpart to the page, if you want to create a seperate asp.net web part page and add the document library to that you could of course....&lt;br /&gt;&lt;br /&gt;Add the Content editor webpart to the page. I prefere underneath.&lt;br /&gt;&lt;br /&gt;In the source editor add the IFRAME snippet found on the image to the left.&lt;br /&gt;&lt;br /&gt;Click apply and ok.&lt;br /&gt;&lt;br /&gt;It you have publishing features activated the checkin any changes and exit edit mode on the page. Take a copy of the URL of the page.&lt;br /&gt;&lt;br /&gt;Now open SharePoint Designer and open the page which contains your list and newly added Content editor webpart with its IFRAME inside it....&lt;br /&gt;&lt;br /&gt;We will be converting the standard list to a data view if your not sure how to do this, click insert, sharepoint controls and then select dataview, you can choose the document library of your choice, in our demo the one above.&lt;br /&gt;&lt;br /&gt;There will be a little right arrow (small) to the top right of the data view, by the way you can easily modify the XSL here to make things like sorting, filter, grouping....but today we are more interested in changing a field type so it is a hyperlink.&lt;br /&gt;&lt;br /&gt;To do this simply click this arrow icon and select edit Colomns, make sure you add the hyperlink field and remove any unwanted fields also.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_UMw1sov7INk/SWMPM10UCAI/AAAAAAAAAAk/F-zkuP1icBk/s1600-h/Document+Viewer+WebPart+4.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5288087100742436866" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 168px" alt="" src="http://1.bp.blogspot.com/_UMw1sov7INk/SWMPM10UCAI/AAAAAAAAAAk/F-zkuP1icBk/s320/Document+Viewer+WebPart+4.jpg" border="0" /&gt;&lt;/a&gt; &lt;a href="http://1.bp.blogspot.com/_UMw1sov7INk/SWMPnAbn1pI/AAAAAAAAAAs/CK1u41MknGM/s1600-h/Document+Viewer+WebPart+5.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5288087550268266130" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 234px" alt="" src="http://1.bp.blogspot.com/_UMw1sov7INk/SWMPnAbn1pI/AAAAAAAAAAs/CK1u41MknGM/s320/Document+Viewer+WebPart+5.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now select the top record (i.e the hyperlink field) in the data view we have just created. like shown bellow, there is a similar arround icon that will show:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align="left"&gt;&lt;a href="http://1.bp.blogspot.com/_UMw1sov7INk/SWMRXXpm3QI/AAAAAAAAAA0/d1lyNj_ACM4/s1600-h/Document+Viewer+WebPart+6.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5288089480646286594" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 135px" alt="" src="http://1.bp.blogspot.com/_UMw1sov7INk/SWMRXXpm3QI/AAAAAAAAAA0/d1lyNj_ACM4/s320/Document+Viewer+WebPart+6.jpg" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Make sure the URL path is shown on the field, you can mask this is you want to in Java Script or indeed in XSD but here is just simply for demo purposes.&lt;br /&gt;&lt;br /&gt;Save the page and exit SPD.&lt;br /&gt;&lt;br /&gt;Go back to the page in SharePoint and edit the page once again. Modify the data view webpart and modify the XSL.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_UMw1sov7INk/SWMXxVZ_5bI/AAAAAAAAAA8/IPVyDajPzEM/s1600-h/Document+Viewer+WebPart++7.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5288096523790312882" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 255px" alt="" src="http://2.bp.blogspot.com/_UMw1sov7INk/SWMXxVZ_5bI/AAAAAAAAAA8/IPVyDajPzEM/s320/Document+Viewer+WebPart++7.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Find the XSL when test for the field type 'url'&lt;br /&gt;it might look something like this.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;xsl:when test="$fieldtype='url'&lt;/em&gt;&lt;br /&gt;&lt;?xml:namespace prefix = xsl /&gt;&lt;xsl:when test="$fieldtype='url'"&gt;&lt;xsl:value-of select="$fieldvalue"&gt;&lt;/xsl:value-of&gt;&lt;/xsl:when&gt;&lt;br /&gt;&lt;xsl:when test="$fieldtype='url'"&gt;&lt;xsl:value-of select="$fieldvalue"&gt;underneath this there should be a "a href" after the "{$fieldvalue} tr" simply add the following:&lt;/xsl:value-of&gt;&lt;/xsl:when&gt;&lt;br /&gt;&lt;xsl:when test="$fieldtype='url'"&gt;&lt;xsl:value-of select="$fieldvalue"&gt;&lt;br /&gt;a href="{$fieldvalue} tr" target="myframe"&lt;br /&gt;&lt;a href="http://www.blogger.com/%7B$fieldvalue%7D" color="#33cc00"&gt;&lt;xsl:value-of select="$fieldvalue"&gt;&lt;/xsl:value-of&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Now what we have is a hyperlink the will send the full url path to the IFRAME we created in the Content editor webpart.&lt;br /&gt;Save, apply and ok. Then youre ready to go&lt;br /&gt;&lt;br /&gt;James Bruiners&lt;br /&gt;&lt;/xsl:value-of&gt;&lt;/xsl:when&gt;&lt;xsl:when test="$fieldtype='url'"&gt;&lt;xsl:value-of select="$fieldvalue"&gt;&lt;/xsl:when&gt;&lt;/xsl:value-of&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-1249802383808716280?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/1249802383808716280/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/document-viewer-webpart-moss.html#comment-form' title='3 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/1249802383808716280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/1249802383808716280'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/document-viewer-webpart-moss.html' title='Document Viewer Webpart MOSS'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UMw1sov7INk/SWIbF_HC38I/AAAAAAAAAAM/J9Q-QXQMR6I/s72-c/Document+Viewer+WebPart.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5391980973043610960.post-1630540480385842453</id><published>2009-01-05T04:35:00.000-08:00</published><updated>2009-01-05T04:47:24.810-08:00</updated><title type='text'>Sharepoint &amp; Office Business Application development</title><content type='html'>&lt;p&gt;Happy 2009 -&lt;br /&gt;&lt;br /&gt;My name is James Bruiners I am the Snr. Microsoft Office SharePoint Server consultant and Microsoft Office Business Applications consultant for a Norwegian energies company.&lt;br /&gt;&lt;br /&gt;I decided to start this blog after my many development highs and lows surrounding SharePoint and Office 2007.&lt;br /&gt;&lt;br /&gt;I will be updating a number of business case articles with sample code, video and explanation surrounding how to maximize MOSS &amp;amp; Office 2007.&lt;br /&gt;&lt;br /&gt;Some of the main areas will include:&lt;br /&gt;BDC Development&lt;br /&gt;Enterprise Search&lt;br /&gt;Content Management&lt;br /&gt;SPD&lt;br /&gt;Office 2007 xml&lt;br /&gt;Office 2007 VBA&lt;br /&gt;VSTO Application Addins&lt;br /&gt;VSTO Document Level Addins&lt;br /&gt;Best Practices&lt;br /&gt;Web Parts&lt;br /&gt;WPF/E Intergration&lt;br /&gt;Forms Server &amp;amp; Services&lt;br /&gt;InfoPath VSTO development&lt;br /&gt;Excel Services&lt;br /&gt;Risk Analysis&lt;br /&gt;Oracle intergration with MOSS&lt;br /&gt;VB6 Integrations with WSS 3.0&lt;br /&gt;and so on....&lt;/p&gt;&lt;p&gt;&lt;br /&gt;So keep watching for more useful information and hints.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5391980973043610960-1630540480385842453?l=sharepoint-oba-talk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sharepoint-oba-talk.blogspot.com/feeds/1630540480385842453/comments/default' title='Legg inn kommentarer'/><link rel='replies' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/sharepoint-office-business-application.html#comment-form' title='0 Kommentarer'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/1630540480385842453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5391980973043610960/posts/default/1630540480385842453'/><link rel='alternate' type='text/html' href='http://sharepoint-oba-talk.blogspot.com/2009/01/sharepoint-office-business-application.html' title='Sharepoint &amp; Office Business Application development'/><author><name>Jay</name><uri>http://www.blogger.com/profile/13523984900494719147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
