Use Cached Files
The first time that you open a form on your system, InfoPath
caches the form files so that you can work offline. Subsequently, each time
that you open the form, InfoPath checks the original location to see if the
template has been updated. If the original location for the template is not
available, InfoPath continues to use the cached files. If you open the form one
time while you are online, you can then fill out the form, and you do not have
to reconnect. You can open this form while you are online from a shared folder,
a Web server, or a SharePoint form library.
Publish the Form to a Null Location
When you publish an InfoPath form, the Publishing Wizard requires
that you make a selection about where to publish the form. You may want to
publish an InfoPath form to a file share, a Web server, or a SharePoint site.
You must specify a location and a name for the form. Next, the Publishing
Wizard prompts you for an alternative access path. By default, this alternative
access path is set to the same location that you just specified. If the path
that is listed on this screen of the wizard is cleared, no location is written
to the form template, and the error does not occur.
Note When forms are filled out from a form template that has been
published to a Null location, InfoPath writes the URL of the current form
template location to the form. In some circumstances, this can cause the
missing template error that is mentioned in the "Summary" section to appear.
This problem occurs if the form template is moved, and then the form is
reopened. Problems may also occur if you copy the form template to different
locations, and then fill out the form from those locations. Because the URL of
the current form template location is different in those files, the forms may
not be compatible with each other. Generally, you must not publish forms to a
Null location.
Use a URN-Based Reference
InfoPath does support a different kind of reference to maintain
the link between the form and the template. The reference that is supported is
a Uniform Resource Name (URN)-based reference. Instead of stamping a URL in the
form that points to the location of the form template, InfoPath can instead
write a URN in the form that points to a Registry key that in turn points to
the form template.
A URN-based form must be installed on your
computer by using a custom install package. The custom install package can be
as simple as a batch file or as complex as an InstallShield solution. You can
e-mail the solution to your users, and then your users can install the solution
on their computer without being online. Because the URN provides a level of
indirection in the form-template association, your users can have the form
template installed in one location while you have the form installed in another
location, and InfoPath can still correctly resolve the reference.
For
additional information about creating a URN-based form by using the RegForm.exe
command-line tool that is available as part of the InfoPath software
development kit (SDK), visit the following Microsoft Web site:
To use the RegForm.exe form registration tool, you can open a
command prompt, type the path name to the tool, and then type RegForm followed
by the command-line options with their appropriate values. A sample
command-line command that can create a URN-based form follows:
RegForm /U urn:MyForm:MyCompany C:\MyForms\MyTrustedForm.xsn
Send the form as an attachment
If you use Microsoft Office Outlook 2003 to send and to receive
e-mail messages, you can send a form to others as an attachment to an e-mail
message.
Recipients must use InfoPath to open the attachment and either fill out the
form or change the form design.
Note Before you send a form to others, we recommend that you
publish the form to a location that is easy to access. This
lets you update the form more easily and enables certain features to
work correctly. The features that will work correctly are as follow:
- Custom task panes
- ActiveX Controls
-
Managed code
If you want to send the form without publishing the form to a shared
location, you can digitally sign the form. This lets the form features work
correctly and lets you send updated versions of the form to others by
using an e-mail program.
To send your form as an
attachment, follow these steps:
- Open the form that you want to send.
- On the File menu, click Send Form
as Attachment.
- If you are prompted either to publish the form or to send the form
as an attachment, click Send as Attachment.
REFERENCES
For additional information about a URN-based form or the
RegForm.exe tool see the "Using the Form Registration Tool" topic that is in
the Help documentation that is included with the InfoPath SDK.
For additional information about how to obtain the latest service pack for Office 2003, click the following article number to view the article in the Microsoft Knowledge Base:
870924�
How to obtain the latest service pack for Office 2003