<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Open infopath form from sharepoint server</title><link>https://www.infopathdev.com:443/forums/thread/49484.aspx</link><pubDate>Sat, 28 Nov 2009 02:07:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49484</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=49484</wfw:commentRss><description>&lt;p&gt;Hi Binay,&lt;/p&gt;
&lt;p&gt;Sorry I misunderstood your scenario. We haven&amp;#39;t done much work embedding InfoPath in a web-page. Sorry I cannot help you further.&lt;/p&gt;</description></item><item><title>Re: Open infopath form from sharepoint server</title><link>https://www.infopathdev.com:443/forums/thread/49473.aspx</link><pubDate>Fri, 27 Nov 2009 13:14:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49473</guid><dc:creator>Binay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=49473</wfw:commentRss><description>&lt;p&gt;Thanks Patrick for quick response.but it does not solved my problem.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am unable to fetch the infopath form controls through javascript.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My requirement is as mentioned below&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1.I have created a browser enabled infopath form and published it to Sharepoint.&lt;/p&gt;
&lt;p&gt;2.Then i have created a HTML form and and inside iframe i have embedded the infopath form which is published in sharepoint.&lt;/p&gt;
&lt;p&gt;3.I have one button in html page outside iframe (where infopath form is embedded)&amp;nbsp;not in Infopath form.&lt;/p&gt;
&lt;p&gt;4.Onclick of the button i need to fetch the value or control id of infopath form&amp;nbsp;using javascript Without opening new infopath fom.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Binay&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Open infopath form from sharepoint server</title><link>https://www.infopathdev.com:443/forums/thread/49472.aspx</link><pubDate>Fri, 27 Nov 2009 12:00:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49472</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=49472</wfw:commentRss><description>&lt;p&gt;Hi Binay,&lt;/p&gt;
&lt;p&gt;Is it read-only because you are debugging it on the server and using localhost? Debugging on the server may result in a more restrictive security policy.&lt;/p&gt;
&lt;p&gt;Best way to open a rich client form is described in Shiraz&amp;#39;s &lt;a title="Shiraz&amp;#39;s Blog" href="http://www.infopathdev.com/blogs/shiraz/archive/2007/08/16/best-way-to-launch-forms-from-web-pages.aspx"&gt;blog&lt;/a&gt;: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font color="#990000" face=""&gt;var strTemplateLocation_New = &amp;quot;&lt;/font&gt;&lt;a href="http://sitename/folder/template.xsn"&gt;&lt;font color="#990000" face=""&gt;http://sitename/folder/template.xsn&lt;/font&gt;&lt;/a&gt;&lt;font color="#990000" face=""&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=""&gt;http://www.example.com&lt;/font&gt;&lt;/a&gt;&lt;font color="#990000" face=""&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;font color="#990000" face="courier new,courier"&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;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;&lt;font color="#000000"&gt;Best way to open in the browser is to use the following URL format:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;&lt;a href="http://%3cservername%3e/_layouts/formserver.aspx?XsnLocation=/FormServerTemplate"&gt;.xsn&amp;amp;OpenIn=Browser&amp;quot;&amp;gt;http://&amp;lt;servername&amp;gt;/_layouts/formserver.aspx?XsnLocation=/FormServerTemplates/&amp;lt;template&lt;font color="#990000"&gt; &lt;/font&gt;published&amp;gt;.xsn&amp;amp;OpenIn=Browser&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;&lt;font color="#000000"&gt;Where &amp;lt;servername&amp;gt; is the name of yoru server and &amp;lt;template published&amp;gt; is the name of your InfoPath template.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;&lt;font color="#000000"&gt;Hope this helps!&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#990000" face="courier new,courier"&gt;&lt;font color="#000000"&gt;:)&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Open infopath form from sharepoint server</title><link>https://www.infopathdev.com:443/forums/thread/49328.aspx</link><pubDate>Mon, 23 Nov 2009 13:51:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49328</guid><dc:creator>Binay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=49328</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I hace published my browser enable infopath form in Sharepoint.&lt;/p&gt;
&lt;p&gt;I have unchecked the Read only checkbox also.&lt;/p&gt;
&lt;p&gt;Now i am using folloing javascript code onclick of button which is in Asp.net page to open infopath form published in Sharepoint.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;1.&amp;nbsp; var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oApp = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ActiveXObject(&amp;quot;InfoPath.Application&amp;quot;);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;2.&amp;nbsp; var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oXDocumentCollection = oApp.XDocuments; &lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;3. var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oXDocument = oXDocumentCollection.Open(&lt;a href="http://sharepointsite/Infosite/Form.xsn"&gt;http://SharepointSite/Infosite/Form.xsn&lt;/a&gt;); &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;But the while debugging it gives the error&amp;nbsp; &amp;quot;&lt;br /&gt;&lt;strong&gt;InfoPath: InfoPath cannot open the following file:&amp;quot;&lt;/strong&gt;&lt;a href="http://localhost/Infosite/Form.xsn"&gt;&lt;strong&gt;http://localhost/Infosite/Form.xsn&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&amp;quot; The form is marked as read-only&lt;/strong&gt;&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;open Method&lt;/strong&gt; takes two parameter as mentioned below. &lt;/p&gt;
&lt;p&gt;oXDocumentCollection.Open(URL,dwbehavior)&lt;/p&gt;
&lt;p&gt;If I give dwbehavior value as &amp;quot;8&amp;quot; it gives following error.&lt;/p&gt;
&lt;p&gt;&amp;quot;InfoPath: InfoPath cannot open the following file: &lt;a href="http://sharepointsite.com/InfopathTest/Forms/AllItems.aspx"&gt;http://sharepointsite.com/InfopathTest/Forms/AllItems.aspx&lt;/a&gt;.&lt;br /&gt;The file is not a valid XML file.&lt;br /&gt;??&lt;br /&gt;The form contains XML that cannot be parsed:&lt;br /&gt;A name was started with an invalid character.&amp;quot;&lt;/p&gt;
&lt;p&gt;Please Let me know if anyone know about the error.&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Some time if i change the path it does not give Read only error.but it gives following Error&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;quot;&lt;strong&gt;InfoPath: InfoPath cannot open the following file: &lt;/strong&gt;&lt;a href="http://hqidwnexwb04.tims.intra.aexp.com/AprimoTest/Forms/AllItems.aspx"&gt;&lt;strong&gt;http://sharepointsite.com/InfopathTest/Forms/AllItems.aspx&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;.&lt;br /&gt;The file is not a valid XML file.&lt;br /&gt;??&lt;br /&gt;The form contains XML that cannot be parsed:&lt;br /&gt;A name was started with an invalid character.&amp;quot;&lt;/strong&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>