<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Shiraz Cupala</title><subtitle type="html" /><id>https://www.infopathdev.com:443/blogs/shiraz/atom.aspx</id><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/default.aspx" /><link rel="self" type="application/atom+xml" href="https://www.infopathdev.com:443/blogs/shiraz/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.31118.962">Community Server</generator><updated>2006-04-27T15:00:00Z</updated><entry><title>InfoPath Developers Wanted for Microsoft User Research Study</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2008/01/02/infopath-developers-wanted-for-microsoft-user-research-study.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2008/01/02/infopath-developers-wanted-for-microsoft-user-research-study.aspx</id><published>2008-01-02T23:15:00Z</published><updated>2008-01-02T23:15:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;span style="FONT-SIZE:11pt;"&gt;Microsoft just contacted&amp;nbsp;us about a usability&amp;nbsp;study opportunity. They are looking for InfoPath form developers in the Seattle area for their study. Here are the details...&lt;/span&gt;&lt;span style="FONT-SIZE:11pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:11pt;"&gt;
&lt;p&gt;Microsoft&amp;#39;s User Research Group is looking for people who develop applications using InfoPath to participate in an upcoming usability study.&amp;nbsp; If you are interested in new computer technology and would like to have an impact on the final design of a Microsoft product that is still in the development phase, we want to speak with you.&lt;/p&gt;
&lt;p&gt;This study is scheduled to begin the week of January 8th with time slots running approximately 2 hours and scheduled at your convenience.&amp;nbsp; Each participant will be given a retail item chosen from a list of Microsoft&amp;#39;s most popular software/hardware titles.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If you are interested in participating or would like more information please email us at &lt;a class="" title="uccoord@microsoft.com" href="mailto:uccoord@microsoft.com"&gt;uccoord@microsoft.com&lt;/a&gt;.&lt;/p&gt;&lt;/span&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=25358" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author></entry><entry><title>How to work with stored procedures by using script in an InfoPath form</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2007/12/21/how-to-work-with-stored-procedures-by-using-script-in-an-infopath-form.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2007/12/21/how-to-work-with-stored-procedures-by-using-script-in-an-infopath-form.aspx</id><published>2007-12-22T00:14:00Z</published><updated>2007-12-22T00:14:00Z</updated><content type="html">&lt;p&gt;Microsoft has an excellent KB article describing how to call store procedures (SPROCs) from InfoPath using script. A must read for advanced database integration with InfoPath.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/827007"&gt;http://support.microsoft.com/kb/827007&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Shiraz&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=25282" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author></entry><entry><title>InfoPath vs. Other Microsoft Technologies</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2007/11/29/infopath-vs-other-microsoft-technologies.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2007/11/29/infopath-vs-other-microsoft-technologies.aspx</id><published>2007-11-29T17:44:00Z</published><updated>2007-11-29T17:44:00Z</updated><content type="html">&lt;p&gt;I frequently am asked to explain the benefits and limitations of InfoPath compared to other Microsoft forms and application techologies. I have drafted a matrix to summarize my thoughts on the matter. This is a work in progress and I&amp;#39;m hoping will generate a lot of comment. There are also some pieces I just don&amp;#39;t understand enough (e.g. Excel Server) so it would be great for others to fill in the gaps.&lt;/p&gt;
&lt;table class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;" cellspacing="0" cellpadding="3"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Technology&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Use&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Pros&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Cons&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;InfoPath&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Rich experience and offline for true &amp;quot;forms&amp;quot; and structured documents.&lt;/p&gt;
&lt;p&gt;Custom data gathering applications.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Rapid iterative design, prototyping, development. Many forms require no code and can be authored by power users. Tight SharePoint integration. Rich Text data.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Limited UI flexibility. Integrates poorly with existing web portals (separate app launches). End-user machine config inconsistencies cause support issues. Oftentimes IP is an extra install for users and not available outside the enterprise.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Word&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Rich experience and offline for freeform documents. Long documents.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Best of breed document authoring and collaboration tool.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Structured documents possible but very hard to build even for pro devs.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Excel&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Rich experience and offline for data modeling/analysis.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Best of breed data/numbers modeling and analysis tool. Handles large quantity of data. Built-in connectivity to back-ends. Easier to customize than Word.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Limited layout for forms. Structured data limited to tabular format. Hard to customize. Requires pro dev for advanced customization.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;InfoPath Server&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Reach scenarios for government and business working with citizens/customers.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Design-once for rich/reach use. InfoPath designer tool allows non-devs to author complex forms/structured documents.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Many limitations right now vs. InfoPath rich-client (e.g. filters). Using this to get rich and reach requires very careful design upfront and will require design limitations. Hard to integrate with existing web portals. Complex security. Licensing confusing, expensive.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;ASP.NET / Web Forms&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Thin experience sufficient, offline not needed.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Total control. Easy to integrate with web portals.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Requires web dev / pro dev. Must build all functionality / UI from scratch. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;Excel Server&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;i&gt;I don&amp;#39;t know the design point for this product. Reach seems to be the one but not complex apps. Input welcome!&lt;/i&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;WinForm, C#, Etc.&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Custom applications.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Ultimate control. Complex UI, More rigid security, Controlled Transactions. Custom offline handling. Performance can be optimized for the scenario.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Advanced pro-dev only. Must build all functionality&amp;nbsp;and all&amp;nbsp;UI from scratch.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;&lt;b&gt;SharePoint Forms (Lists)&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Simple List Tracking&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Fast, lean, easy.&lt;/p&gt;&lt;/td&gt;
&lt;td class="" style="BORDER-RIGHT:black 1px solid;BORDER-TOP:black 1px solid;BORDER-LEFT:black 1px solid;BORDER-BOTTOM:black 1px solid;"&gt;
&lt;p&gt;Very limited UI, logic. No offline.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;As I get input I will update this matrix. Comment away!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=24801" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author></entry><entry><title>Best way to Link to Forms on Web Pages</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2007/08/16/best-way-to-launch-forms-from-web-pages.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2007/08/16/best-way-to-launch-forms-from-web-pages.aspx</id><published>2007-08-16T21:30:00Z</published><updated>2007-08-16T21:30:00Z</updated><content type="html">&lt;p&gt;Whenever you want to expose your forms on a web page the tendency is to want to put a plain hyperlink to your XSN form template&amp;nbsp;or XML file. The problem with this ranges from getting lame IE download dialogs all the time to data loss scenarios (see below). The correct way is to do it the way SharePoint does it.&lt;/p&gt;
&lt;p&gt;You want to use script to call the inlaunch.dll which InfoPath installs and registers just for this purpose.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key Scenarios:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Open an existing XML form file for editing. - Here you want to use the EditDocument2() method. If you don&amp;#39;t then in some cases users can experience dataloss as outlined here: &lt;a href="http://www.infopathdev.com/forums/t/6045.aspx"&gt;http://www.infopathdev.com/forums/t/6045.aspx&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a new form from an XSN form template. - For this you call the CreateNewDocument2() method.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a new form using an existing XML file as the default data. - For this you use an &lt;em&gt;undocumented&lt;/em&gt; feature whereby you pass the URL to your XML file to the same CreateNewDocument2() method. Essentially what it does is open that XML file but forces a SaveAs type behavior.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Brief Code Snippet&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This example is for the second scenario:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;var strTemplateLocation_New = &amp;quot;&lt;/font&gt;&lt;a href="http://sitename/folder/template.xsn"&gt;&lt;font color="#990000" face="courier new,courier"&gt;http://sitename/folder/template.xsn&lt;/font&gt;&lt;/a&gt;&lt;font color="#990000" face="courier new,courier"&gt;&amp;quot;;&lt;br /&gt;var strDefaultSaveLocation_New = &amp;quot;&lt;/font&gt;&lt;a href="http://www.example.com/"&gt;&lt;font color="#990000" face="courier new,courier"&gt;http://www.example.com&lt;/font&gt;&lt;/a&gt;&lt;font color="#990000" face="courier new,courier"&gt;&amp;quot;;&lt;br /&gt;function CreateNewXMLDocument()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Based on WPQ3combineDocuments()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var objOpenXMLDoc = new ActiveXObject(&amp;quot;SharePoint.OpenXMLDocuments.1&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bSuccess = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bSuccess = objOpenXMLDoc.CreateNewDocument2(window , strTemplateLocation_New , strDefaultSaveLocation_New );&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;&lt;font color="#990000" face="courier new,courier"&gt;
&lt;p&gt;&lt;br /&gt;&amp;lt;a onclick=&amp;quot;CreateNewXMLDocument(); return false;&amp;quot; style=&amp;quot;cursor: pointer;&amp;quot; href=&amp;quot;&amp;lt;numbersign&amp;gt;&amp;quot;&amp;gt;Create New Blank Form&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;Note: where you see href=&amp;quot;&amp;lt;numbersign&amp;gt;&amp;quot; you need to put in the # symbol inside the quotes instead.&amp;nbsp; I can&amp;#39;t show that here because the blog posting system reformats it as code. Best is to just download the sample code directly.&lt;font color="#990000" face="courier new,courier"&gt;&lt;font color="#000000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;strong&gt;Full Sample Code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve uploaded a web page with sample code for all 3 scenarios. Download Example:&lt;strong&gt; &lt;/strong&gt;&lt;a href="http://www.infopathdev.com/files/folders/examples/entry41177.aspx"&gt;http://www.infopathdev.com/files/folders/examples/entry41177.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some notes on this example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;You will need to swap in your XSN or XML urls for the current placeholders for &amp;quot;DocumentLocation&amp;quot; and&amp;nbsp;&amp;quot;TemplateLocation&amp;quot;.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The use of &amp;#39;http://www.example.com&amp;#39;&amp;nbsp;is to just force InfoPath to instead ask the user to save into their MyDocuments folder. You can alternatively specify a hard drive location but wildcards won&amp;#39;t work. Also both these methods will result in a browser cross-domain security prompt.&amp;nbsp;To eliminate that you would want to use the same server name as in the actual XSN link. If that is a SharePoint site this will result in InfoPath thinking it can save to that location (which may be true). If it&amp;#39;s not a SharePoint site then you&amp;#39;re in luck because then InfoPath will treat it like the example.com placeholder and force the SaveAs to MyDocuments but without any cross-domain issues/prompt.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You&amp;#39;ll notice the hyperlinks have hrefs and the script. This is so that if the user wants to right-click download the target they can do this (for example to save an XML file for offline use). I of course substituted # for the XSN link as downloading the XSN locally makes no sense.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;LIMITATION&lt;/strong&gt;: If you use this method to link to a file not on the same domain then you will get a cross-domain security yes/no dialog from Internet Explorer and maybe other browsers. It is&amp;nbsp;because script is trying to access a file on another domain. I currently know of no way around this issue.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;MSDN OM Documentation&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following MSDN reference is the complete documentation of this method and explains a couple other advanced calls for other less common scenarios: &lt;a href="http://msdn2.microsoft.com/en-us/library/ms452435.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms452435.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Post Update on 2007-10-22 to explain further an issue around the example.com placeholder.&lt;br /&gt;Post Update on 2007-10-23 to correct the ProgID in the sample htm document to use &amp;quot;InfoPath.Document&amp;quot; instead of &amp;quot;mso-application&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=22375" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author></entry><entry><title>Features Available by VSTO and Office Product Combination</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2007/06/14/Features-Available-by-VSTO-and-Office-Product-Combination.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2007/06/14/Features-Available-by-VSTO-and-Office-Product-Combination.aspx</id><published>2007-06-14T15:32:00Z</published><updated>2007-06-14T15:32:00Z</updated><content type="html">&lt;p&gt;This page on MSDN provide a very cool matrix of which features are available for development depnding on your mix of VSTO version and Office version.&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/aa942839(VS.80).aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa942839(VS.80).aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=20777" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author></entry><entry><title>Hide a Date Picker Control</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2006/09/08/Hide-a-Date-Picker-Control.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2006/09/08/Hide-a-Date-Picker-Control.aspx</id><published>2006-09-08T18:44:00Z</published><updated>2006-09-08T18:44:00Z</updated><content type="html">&lt;p&gt;Have you ever tried to hide a date picker control using conditional formatting? Well you can&amp;rsquo;t! We don&amp;rsquo;t know why this option is disabled on the conditional formatting dialog. InfoPath 2007 doesn&amp;rsquo;t fix this either. We know you still need to hide those date pickers. Here&amp;rsquo;s a trick.&lt;/p&gt;&lt;p&gt;Wrap the date picker in a section control and then set the conditional formatting on that control. You have to bind the section control to something, and I recommend just binding it to the same date node itself so the relationship is clear and to avoid extra nodes in your data source / schema.&lt;/p&gt;&lt;p&gt;To do this easily you need to switch to the Data Source task pane and then find the node which corresponds to your date picker control. The fastest way is to just again click on the date picker control, and the appropriate node will be selected. Then &amp;ldquo;right-drag&amp;rdquo; and drop the particular date node from the tree to your view. You will be presented with a menu of additional control insertion options. Select the &amp;ldquo;Section&amp;rdquo; control. There you have your section. Now drag and drop your date picker into that and set the conditional formatting on the section.&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=295" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author><category term="Date Picker" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Date+Picker/default.aspx" /><category term="Workarounds" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Workarounds/default.aspx" /><category term="Conditional Visibility" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Conditional+Visibility/default.aspx" /><category term="Condtional Formatting" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Condtional+Formatting/default.aspx" /><category term="Sections" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Sections/default.aspx" /><category term="Bugs" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Bugs/default.aspx" /></entry><entry><title>Security Error Opening a Managed Code Form</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/shiraz/archive/2006/04/27/Security-Error-Opening-a-Managed-Code-Form.aspx" /><id>https://www.infopathdev.com:443/blogs/shiraz/archive/2006/04/27/Security-Error-Opening-a-Managed-Code-Form.aspx</id><published>2006-04-27T22:00:00Z</published><updated>2006-04-27T22:00:00Z</updated><content type="html">&lt;p&gt;Sometimes when trying to access an InfoPath form deployed to a web site you will get a cryptic security error preventing the form from opening. This can happen both for intranet or internet web sites and is oftentimes due to the fact that the form has C# code in it. This can happen even if the C# InfoPath project is empty. Most of the time you will see a dialog like this:&lt;/p&gt;&lt;p&gt;&lt;img height="109" src="http://cs.infopathdev.com/photos/blog_pictures/images/121/original.aspx" style="width:655px;height:109px;" width="655" /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Initially you should do the following to eliminate some typical causes for this:&lt;/strong&gt;&lt;/p&gt;&lt;ol start="1" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;Clear your Internet Explorer cache by selecting Options from the Tools menu. This is to work around a bug in Internet Explorer. &lt;/li&gt;&lt;li&gt;Delete any existing copy of the form that has been cached by InfoPath. To do this open InfoPath and in the &amp;quot;Fill Out a Form&amp;quot; dialog select the form to delete and click &amp;quot;Remove this form&amp;quot; in the right list of commands. &lt;/li&gt;&lt;li&gt;Finally close all instances of InfoPath and Internet Explorer and then try to reopen the form. &lt;/li&gt;&lt;li&gt;As a last resort reboot your machine to ensure that IE and InfoPath are really shut down when retrying.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;If this does not solve the problem then you can try adding the web site to your Local Intranet zone in Internet Explorer.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;Be careful to only add sites which you trust to the Local Intranet zone. This zone grants greater privileges to included web pages and forms.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;Managed code runs with reduced security when a site is added to the Trusted Sites zone. Yes this is counter-intuitive but that&amp;#39;s how it works. So don&amp;#39;t get confused and add a site to your Trusted Sites zone.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;To add the site to the Local Intranet zone in Internet Explorer do the following:&lt;/strong&gt;&lt;/p&gt;&lt;ol start="1" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;In Internet Explorer select Internet Options from the Tools menu. &lt;/li&gt;&lt;li&gt;Select the Security tab from that dialog.&lt;/li&gt;&lt;/ol&gt;&lt;p style="padding-left:40px;"&gt;&lt;img height="519" src="http://cs.infopathdev.com/photos/blog_pictures/images/122/original.aspx" style="width:413px;height:519px;" width="413" /&gt;&lt;/p&gt;&lt;ol start="3" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;Select &amp;quot;Local intranet&amp;quot; then click the Sites button. &lt;/li&gt;&lt;li&gt;In that dialog click the &amp;quot;Advanced...&amp;quot; button. You will get this dialog.&lt;/li&gt;&lt;/ol&gt;&lt;p style="padding-left:40px;"&gt;&lt;img height="342" src="http://cs.infopathdev.com/photos/blog_pictures/images/123/original.aspx" style="width:384px;height:342px;" width="384" /&gt;&lt;/p&gt;&lt;ol start="5" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;In the text box at the top enter the name of the server you are trying to access. For example enter &lt;strong&gt;http://myintranetsite/&lt;/strong&gt; or &lt;strong&gt;http://www.example.com&lt;/strong&gt;. &lt;/li&gt;&lt;li&gt;Click the Add button. &lt;/li&gt;&lt;li&gt;Click Close on this dialog. &lt;/li&gt;&lt;li&gt;Click OK on the previous dialog. &lt;/li&gt;&lt;li&gt;Click OK on the Internet Options dialog. &lt;/li&gt;&lt;li&gt;Try opening the form again. Note: You may need to close all instances of Internet Explorer and InfoPath first for the change to take effect.&lt;/li&gt;&lt;/ol&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=124" width="1" height="1"&gt;</content><author><name>Shiraz Cupala</name><uri>https://www.infopathdev.com:443/members/Shiraz-Cupala.aspx</uri></author><category term="Security" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Security/default.aspx" /><category term="Managed Code" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Managed+Code/default.aspx" /><category term="Internet Explorer" scheme="https://www.infopathdev.com:443/blogs/shiraz/archive/tags/Internet+Explorer/default.aspx" /></entry></feed>