Stump the Panel Topic: Force Open .xml InfoPath in Browser http://www.endusersharepoint.com/STP/ SharePoint QA en Wed, 27 May 2009 02:15:48 +0000 Samer on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-5582 Wed, 01 Apr 2009 10:41:16 +0000 Samer 5582@http://www.endusersharepoint.com/STP/ <p>I have the same Problem, im stick in this problem<br /> first i created a form library and publish it as content type i add site coulmns to it<br /> then i added some code on the same form (on load_event) and republish it with full trust and assigned certificate as administratrator (advance).<br /> the Form library sitting configured to be web enabled and allowing content types , Central administration is confihured correctly.<br /> im sure everything is configured to be web-enabled but when i select new form from the form librar the file opens as .xsn not web<br /> what the problem?<br /> how can i make info path web enabled always </p> erugalatha on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4203 Fri, 13 Feb 2009 07:50:27 +0000 erugalatha 4203@http://www.endusersharepoint.com/STP/ <p>Thanks jaxkookie you gave me an idea. This is not end user stuff I'm describing here but non-end users who read this website might find it beneficial.</p> <p>Here is how I solved my problem:</p> <p>1. Created a Master Form (this is a .xsn) in Visual Studio which is uploaded and published through Central Administration by the SharePoint Admin.<br /> 2. Created a Master Content Type which points at the Master From .xsn uploaded in previous step.<br /> 3. Users use this form in a Form Library at the top level of the Site Collection. In this case they add questions to a repeating table and save the form. The form is saved as a .xml file into the Form Library.<br /> 4. My requirement is to take each of those .xml files created by users (Site Managers) and make them into Content Types for reuse at lower level sites. These are dynamic form templates created by Site Managers for use by users.<br /> 5. By default it seems the Content Type pointing to a .xml file will ALWAYS try to open in InfoPath. If I remove the &lt;?mso-application progid="InfoPath.Document"?&gt; line it is then just an ordinary .xml file and will open in the browser but will have none of the functionality that is built into the .xsn e.g. dropdowns, buttons etc.<br /> 6. So I copied the XML from the .xml templates created by managers and in Visual Studio I replaced what was in the template.xml with this copied XML.<br /> 7. Then I created the .xsn's (calling each a different name for each type of template that is required). Now each .xsn has a different set of questions.<br /> 8. Created the corresponding set of Content Types for each .xsn.<br /> 9. Attached the Content Types to my form library at lower level site.</p> <p>Now I have an (almost) dynamic set of Forms that can be constructed by Site Managers and reused.</p> <p>oh happy day. :) </p> jaxkookie on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4190 Thu, 12 Feb 2009 20:40:30 +0000 jaxkookie 4190@http://www.endusersharepoint.com/STP/ <p>last item, once changes are made to the template.xml file, adding link to xsl, the manifest.xsf is the file you open in design mode and publish for changes to take </p> jaxkookie on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4189 Thu, 12 Feb 2009 20:38:43 +0000 jaxkookie 4189@http://www.endusersharepoint.com/STP/ <p>I do not use a form server or MOSS, but I had a similar requirement. I have to make to changes to the template. First I needed to save the template as Source files. In the template file I needed to add a link to the xsl page, mine was a preview.xsl<br /> '&lt;?xml-stylesheet type="text/xsl" href="/site/olr/Forms/Preview.xsl"?&gt;' the path can be where ever you want to store it and to which ever view you choose, that file will need to be uploaded. Once a batch of files have been created in SP I do a find and replace and comment out the line of code that displays the file as an InfoPath form.<br /> '&lt;?mso-application progid="InfoPath.Document"?&gt;'<br /> '&lt;!-- &lt;?mso-application progid="InfoPath.Document"?&gt; --&gt;'<br /> the form will open in the browser by default, in SP the menu still provides a way to open in InfoPath. This is only a work around and not the best solution, but it fit the needs I had. Good luck </p> erugalatha on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4167 Thu, 12 Feb 2009 07:31:48 +0000 erugalatha 4167@http://www.endusersharepoint.com/STP/ <p>Yep, it passes all the browser form tests and it actually loads fine in the form library. The problem is when I create .xml files from it and make those .xml files into Content Types and try to reuse them.</p> <p>Then it no workie. </p> AutoSponge on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4149 Wed, 11 Feb 2009 21:34:17 +0000 AutoSponge 4149@http://www.endusersharepoint.com/STP/ <p>No, I mean inside InfoPath, you have to set it for web compatibility mode or something. Did you pass all the compatibility tests? </p> erugalatha on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4145 Wed, 11 Feb 2009 19:12:05 +0000 erugalatha 4145@http://www.endusersharepoint.com/STP/ <p>Yup, the form works in Forms Services in a Form Library that I've created at the Site Collection level. I can open the form and it pulls in data from data connections and I then save the form as a .xml file into that Form Library. </p> <p>I then use that .xml file to create a Content Type. </p> <p>In a sub site I created a Form Library and set the Management of Content Types on and the "Display as a Web Page" is turned on.</p> <p>When I choose New -&gt; My Form in the Form Library it starts up InfoPath Client. I tried it on a computer without InfoPath installed and it throws a message saying that "Internet Explorer 6.0 or higher is required or a Windows Shared Services XML Viewer is required".</p> <p>I am stumped as to what use the "Display as a Web Page" functionality does as it does not work reliably. </p> AutoSponge on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4136 Wed, 11 Feb 2009 16:40:30 +0000 AutoSponge 4136@http://www.endusersharepoint.com/STP/ <p>There are some settings you need to make in the InfoPath form as well. Did you do those? </p> erugalatha on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4118 Wed, 11 Feb 2009 10:08:24 +0000 erugalatha 4118@http://www.endusersharepoint.com/STP/ <p>anyone? I really need some help on this.</p> <p>The "Display as a Web Page" does not seem to work. </p> erugalatha on "Force Open .xml InfoPath in Browser" http://www.endusersharepoint.com/STP/topic/force-open-xml-infopath-in-browser#post-4097 Tue, 10 Feb 2009 21:00:29 +0000 erugalatha 4097@http://www.endusersharepoint.com/STP/ <p>Hello.</p> <p>I have the following scenario:<br /> .xsn file uploaded in central admin and is available at site collection level as a master template on a form library.<br /> Site managers create .xml templates in this form library using the .xsn as the master form.</p> <p>I then create Content Types for these .xml files and point the content type to the .xml files. </p> <p>PROBLEM:<br /> On Form Libraries in sub-sites the forms will not open in the browser ... they require InfoPath client.</p> <p>I have made all the correct settings in Central Admin to Render browser forms but the forms in form libraries where the content type points at an .XML file all will NOT open in the browser.<br /> I have also set the "Display in web browser" option within the form library but this does not work.</p> <p>How do I force them to open in the browser?</p> <p>Thanks for your help. </p>