﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Holger's Blog : sharepoint</title><link />http://developers.de/blogs/holger_vetter/archive/tags/sharepoint/default.aspx<description>Tags: sharepoint</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Host plain HTML/Javascript page in Web Part (angular/bootstrap)</title><link />http://developers.de/blogs/holger_vetter/archive/2016/06/17/host-plain-html-javascript-page-in-web-part-angular-bootstrap.aspx<pubdate>Fri, 17 Jun 2016 15:17:12 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1792359</guid><dc:creator>Holger Vetter</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/holger_vetter/rsscomments.aspx?PostID=1792359</wfw:commentrss><comments>http://developers.de/blogs/holger_vetter/archive/2016/06/17/host-plain-html-javascript-page-in-web-part-angular-bootstrap.aspx#comments</comments><description>&lt;p&gt;Today I implemented an example web application using bootstrap/angular which should perform basic CRUD operations on Sharepoint 2010 Lists with rest api.&lt;/p&gt;  &lt;p&gt;You can host your complete bootstrap/angular web application in sharepoint and display it in a web part.   &lt;br /&gt;To archieve this, first create or use a document library and upload your html/javascript/css files. You have to rename all your .html files to .aspx, because per default sharepoint only shows .aspx files in browsers. When you try to open an .html file from a document library the browser not show it, instead he asks you to download.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_7E44535A.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_3A03EC0E.png" width="755" height="154" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After you uploaded your files to a document library you have to create a page.   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_00ED0F0C.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_32E4AF96.png" width="244" height="179" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Page should open automaticly in edit mode after creation. Now click on the “Insert”Ribbon and pick web part. Navigate to “Media and Content” and select the “Page Viewer”. It will host your code in an iframe.   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_79CDD293.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_40B6F591.png" width="244" height="158" /&gt;&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Edit the web part and enter the url to your main/start file (.aspx file) of your web application. Save everything and you are done. If needed modify the height or other properties of the web part to fit your needs.&lt;/p&gt;  &lt;p&gt;The result for me looks like this:   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_72AE961B.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_3997B919.png" width="376" height="492" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1792359" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/holger_vetter/archive/tags/sharepoint/default.aspx">sharepoint</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/javascript/default.aspx">javascript</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/angular/default.aspx">angular</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/html/default.aspx">html</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/sharepoint+2010/default.aspx">sharepoint 2010</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/bootstrap/default.aspx">bootstrap</category></item><item><title>InfoPath xml (manifest.xsf) editing with code</title><link />http://developers.de/blogs/holger_vetter/archive/2016/02/18/infopath-xml-manifest-xsf-editing-with-code.aspx<pubdate>Thu, 18 Feb 2016 16:53:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1725217</guid><dc:creator>Holger Vetter</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/holger_vetter/rsscomments.aspx?PostID=1725217</wfw:commentrss><comments>http://developers.de/blogs/holger_vetter/archive/2016/02/18/infopath-xml-manifest-xsf-editing-with-code.aspx#comments</comments><description>&lt;p&gt;When you are extracting an InfoPath file you will get many diffent files, one of them is the manifest.xsf file. I had to modify the manifest.xsf file with C# code and change some values inside the xml.    &lt;br /&gt;For this task I used the XmlDocument class from .NET. After I saved the modified file and repacked all InfoPath files back to an .xsn file with the CabPacker tool I recognized that the file can not be opened by InfoPath.     &lt;br /&gt;It showed an error about invalid xml. After some reasearch I figured out that the new manifest.xsf looks different that the original one.    &lt;br /&gt;Here is an screenshot of the different files (left side: old; right side: new):    &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_7CA422E2.png"&gt;&lt;img title="image" border="0" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_0E80B6B0.png" alt="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" height="264" width="894" /&gt;&lt;/a&gt;    &lt;br /&gt;As you can see on the right side the XmlDocument class adds a line break before the end tag.&lt;/p&gt;
&lt;p&gt;You can disable this by setting &amp;ldquo;PreserveWhiteSpace&amp;rdquo; to true.   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_6E65A9F2.png"&gt;&lt;img title="image" border="0" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_354ECCF0.png" alt="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" height="88" width="399" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1725217" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/holger_vetter/archive/tags/infopath/default.aspx">infopath</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/sharepoint/default.aspx">sharepoint</category></item><item><title>CabFilePacker for creating InfoPath CAB files</title><link />http://developers.de/blogs/holger_vetter/archive/2015/07/16/cabfilepacker-for-creating-infopath-cab-files.aspx<pubdate>Thu, 16 Jul 2015 17:56:42 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1467965</guid><dc:creator>Holger Vetter</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/holger_vetter/rsscomments.aspx?PostID=1467965</wfw:commentrss><comments>http://developers.de/blogs/holger_vetter/archive/2015/07/16/cabfilepacker-for-creating-infopath-cab-files.aspx#comments</comments><description>&lt;p&gt;Today I am presenting you a tool which helps you to create an InfoPath (.XSN) file. When you want to edit the manifest.xsf file or any other file in an Infopath form you need to unpack theese files and then edit them. After they were edited I had the problem to pack those into an InfoPath file again. In &lt;a href="http://developers.de/blogs/holger_vetter/archive/2015/05/12/upgrade-infopath-2007-document-to-2013-without-infopath-designer.aspx" target="_blank"&gt;this&lt;/a&gt; blogpost I showed how to do this with makecab.exe which is shipped with Visual Studio. This method works like charm and maybe you ask yourself why to download a tool for this task. The reason is: You don’t have to put all filenames in the script which makecab.exe executes.&lt;/p&gt;  &lt;p&gt;CabFilePacker adds all files in the specified folder into a CAB file and then renames the file to InfoPath.xsn. The tool is really easy to use. Just download the files, start and enter the path of the folder.   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_2AEF9783.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_23D05B0B.png" width="447" height="227" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Download links:   &lt;br /&gt;Executable (OneDrive): &lt;a title="http://1drv.ms/1en62qh" href="http://1drv.ms/1en62qh"&gt;http://1drv.ms/1en62qh&lt;/a&gt;    &lt;br /&gt;SourceCode (Visual Studio 2013 Project): &lt;a title="https://github.com/daenetCorporation/CabFilePacker" href="https://github.com/daenetCorporation/CabFilePacker"&gt;https://github.com/daenetCorporation/CabFilePacker&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1467965" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/holger_vetter/archive/tags/infopath/default.aspx">infopath</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/sharepoint/default.aspx">sharepoint</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Upgrade InfoPath 2007 document to 2013 without InfoPath Designer</title><link />http://developers.de/blogs/holger_vetter/archive/2015/05/12/upgrade-infopath-2007-document-to-2013-without-infopath-designer.aspx<pubdate>Tue, 12 May 2015 11:32:05 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1277837</guid><dc:creator>Holger Vetter</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/holger_vetter/rsscomments.aspx?PostID=1277837</wfw:commentrss><comments>http://developers.de/blogs/holger_vetter/archive/2015/05/12/upgrade-infopath-2007-document-to-2013-without-infopath-designer.aspx#comments</comments><description>&lt;p&gt;Hello,&lt;/p&gt;  &lt;p&gt;in our project we downloaded many InfoPath files from the old sharepoint server.   &lt;br /&gt;Now we wanted to upgrade them from “Web Browser Form (InfoPath 2007)” to “Web Browser Form” without opening them all in the InfoPath Designer.&lt;/p&gt;  &lt;p&gt;For this I had to unpack the .xsn InfoPath file (for example with 7Zip) and change this in me manifest.xsf file:   &lt;br /&gt;Change solutionFormatVersion=&amp;quot;2.0.0.0&amp;quot; to solutionFormatVersion=&amp;quot;15.0.0.0&amp;quot;    &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_029F007D.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_296D16BD.png" width="791" height="249" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If necessary change Quick Publish Uri in the same file.   &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_5B64B747.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_3B49AA8A.png" width="817" height="102" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now you have to pack the files you extraced to a CAB file. For this porpuse I used this script:   &lt;br /&gt;&lt;a title="http://pastebin.com/PqUUp5un" href="http://pastebin.com/PqUUp5un"&gt;http://pastebin.com/PqUUp5un&lt;/a&gt;    &lt;br /&gt;You can use makecab.exe in the windows cmd.     &lt;br /&gt;Example command: makecab /F path_to_ddf.ddf    &lt;br /&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_30202040.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/holger_5F00_vetter/image_5F00_thumb_5F00_7709433D.png" width="430" height="132" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This should a CAB file with the file ending .xsn (only in this case because its in the script, normally makecab creates .cab files)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1277837" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/holger_vetter/archive/tags/infopath/default.aspx">infopath</category><category domain="http://developers.de/blogs/holger_vetter/archive/tags/sharepoint/default.aspx">sharepoint</category></item></channel></rss>