Troubleshoot the deployment of InfoPath 2007 forms

Source: Internet
Author: User
Tags xslt visual studio

Recently developed a small attendance system, InfoPath forms are almost finished, so get a colleague there is going to test, on the colleague's machine open InfoPath XML file when a mistake, said found no form template, depressed! In retrospect, I used to deploy on a network path, but I chose a local path, so when these XML files are opened on other machines, InfoPath tries to find the path on my machine. The network path is only appropriate for the LAN, the path to the publication should be a shared path, and all users have access rights.

Tip

The XML file that InfoPath generates is actually a standard XML file, plus an InfoPath tag, such as:

In the Explorer, the reason that the icon for an InfoPath XML file differs from the normal XML file is that, if you remove the label, you will notice that the icon is not an InfoPath file icon, and the resource manager cannot identify whether it is an InfoPath file or not.

Taking a look at the data, mostly saying how to deploy based on InfoPath Form server or SharePoint, is too expensive to consider, but one option is to use the Installable form template (Installable form template) , this option can be found in the Publishing Wizard, but be aware that Visual Studio 2003 or 2005 must be installed if you want to use this feature.

It will require you to fill in the company name and language type, where the company name is useful and the final template file will be installed to the%program files%< company name >< form name > form template file (. xsn). Finally, you will get an MSI installation file, then you have to install it on your own machine, and then use%program files%< company name >< form name > directory template file to generate the form to fill in, so there is a benefit, The generated file header does not have an HREF tag, as follows:

Instead of looking for a monthlyattendance template for a path, it makes InfoPath responsible for finding it, because it is already installed in InfoPath by that template installer (MSI), so it's easy to open. In terms of deployment, the only thing you have to do is to have the MSI installed by anyone who wants to open the form XML file in InfoPath.

Of course, if you don't want to install InfoPath on the user's machine and don't want to install the template, there is another option, which is to use XSLT. For example, we can make an XSLT file called ABC, and then we can add an XSLT reference tag to an InfoPath XML file:

This allows you to view the InfoPath data through IE on a machine that does not have InfoPath installed, and of course you have to do the appropriate XML data conversion in the ABC.XSLT.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.