InfoPath recognizing extensions other than xml

S

scottrudy

The application I am migrating has different extentions for the company's
file types. For example one of the file types, sampling guidelines, ends in
..xms. Is there a perferred way in the registry that I can assign these types.
I have tried three different ways and they all seem to work:

Attempt 1:
[HKEY_CLASSES_ROOT\.xms]
@="xmlfile"
"Content Type"="text/xml"

[HKEY_CLASSES_ROOT\.xms\OpenWithList]

[HKEY_CLASSES_ROOT\.xms\OpenWithList\infopath.exe]

[HKEY_CLASSES_ROOT\InfoPath.Document.1\XML Handler\Icon]
".xms"=".infopathxml"

Attempt 2:
[HKEY_CLASSES_ROOT\.xms]
"Content Type"="application/ms-infopath.xms"
@="InfoPath.Document.1"

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1]

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1\ShellNew]

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/ms-infopath.xms]
"CLS_ID"="{807553E6-5146-11D5-A672-00B0D022E945}"
"Extension"=".xms"

Attempt 3:
[HKEY_CLASSES_ROOT\.xms]
@="xms_auto_file"

[HKEY_CLASSES_ROOT\xms_auto_file]
@="Sampling Guideline"

[HKEY_CLASSES_ROOT\xms_auto_file\DefaultIcon]
@="C:\\Program Files\\Microsoft Office\\OFFICE11\\INFOPATH.EXE,1"

[HKEY_CLASSES_ROOT\xms_auto_file\shell]
@="open"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\command]
@="\"C:\\Program Files\\Common Files\\Microsoft
Shared\\OFFICE11\\MSOXMLED.EXE\" /verb open \"%1\""

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Application]
@="MSOXMLED"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Topic]
@="System"
 
S

scottrudy

Actually the forms already exist as they have been transformed from a
previous xml editor. Now I want InfoPath to automatically recognize these
extensions and I don't want the end user to click and see the message that
the system does not recognize the file type.
 
S

scottrudy

I have already done that. The problem is the files do not have a ".xml"
extenstion they have a ".xms" extension. I need to double-click a ".xms"
(valid InfoPath) file and have InfoPath recognize it.

Greg Collins said:
You need to add the InfoPath processing-instructions to the top of the ..xml files. They can be found at the top of any InfoPath .xml file.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Actually the forms already exist as they have been transformed from a
previous xml editor. Now I want InfoPath to automatically recognize these
extensions and I don't want the end user to click and see the message that
the system does not recognize the file type.

Greg Collins said:
Are you trying to use these files as secondary data sources? Or to build a new blank form based on these files?

Have you tried just typing in "c:\path\filename.xms"? It works for me.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



The application I am migrating has different extentions for the company's
file types. For example one of the file types, sampling guidelines, ends in
..xms. Is there a perferred way in the registry that I can assign these types.
I have tried three different ways and they all seem to work:

Attempt 1:
[HKEY_CLASSES_ROOT\.xms]
@="xmlfile"
"Content Type"="text/xml"

[HKEY_CLASSES_ROOT\.xms\OpenWithList]

[HKEY_CLASSES_ROOT\.xms\OpenWithList\infopath.exe]

[HKEY_CLASSES_ROOT\InfoPath.Document.1\XML Handler\Icon]
".xms"=".infopathxml"

Attempt 2:
[HKEY_CLASSES_ROOT\.xms]
"Content Type"="application/ms-infopath.xms"
@="InfoPath.Document.1"

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1]

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1\ShellNew]

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/ms-infopath.xms]
"CLS_ID"="{807553E6-5146-11D5-A672-00B0D022E945}"
"Extension"=".xms"

Attempt 3:
[HKEY_CLASSES_ROOT\.xms]
@="xms_auto_file"

[HKEY_CLASSES_ROOT\xms_auto_file]
@="Sampling Guideline"

[HKEY_CLASSES_ROOT\xms_auto_file\DefaultIcon]
@="C:\\Program Files\\Microsoft Office\\OFFICE11\\INFOPATH.EXE,1"

[HKEY_CLASSES_ROOT\xms_auto_file\shell]
@="open"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\command]
@="\"C:\\Program Files\\Common Files\\Microsoft
Shared\\OFFICE11\\MSOXMLED.EXE\" /verb open \"%1\""

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Application]
@="MSOXMLED"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Topic]
@="System"
 
S

scottrudy

Just an FYI - That actually results in attempt 3 of original post. However,
by using the registry (or a VS.Net Install project) you eliminate the need to
visit a user's desktop.

Greg Collins said:
Ah -- yes, that's very different. Try this:

Identify the action required to open in InfoPath:
1. In Windows Explorer, then choose Folder Options from the Tools menu.
2. On the File Types tab, type the letters INFOP to quickly navigate to the INFOPATHXML file type.
3. Click Advanced.
4. Select the Open action and then click Edit.
5. Copy the information used to open this file type (you'll use it for your .xms files)
6. Click Cancel twice to return to the Folder Options dialog box.

Set the open action for .xms files:
1. Click into the file type list to set the focus there.
2. Type the letters XMS to quickly navigate to your XMS file type.
3. Click Advanced.
4. If an Open action exists, edit it. If not, click New to create one.
5. Enter the information you copied previously.
6. Click OK three times to save your settings.

Now double-clicking your .xms files to verify that they load into InfoPath.


--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



I have already done that. The problem is the files do not have a ".xml"
extenstion they have a ".xms" extension. I need to double-click a ".xms"
(valid InfoPath) file and have InfoPath recognize it.

Greg Collins said:
You need to add the InfoPath processing-instructions to the top of the ...xml files. They can be found at the top of any InfoPath .xml file.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Actually the forms already exist as they have been transformed from a
previous xml editor. Now I want InfoPath to automatically recognize these
extensions and I don't want the end user to click and see the message that
the system does not recognize the file type.

Greg Collins said:
Are you trying to use these files as secondary data sources? Or to build a new blank form based on these files?

Have you tried just typing in "c:\path\filename.xms"? It works for me.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



The application I am migrating has different extentions for the company's
file types. For example one of the file types, sampling guidelines, ends in
..xms. Is there a perferred way in the registry that I can assign these types.
I have tried three different ways and they all seem to work:

Attempt 1:
[HKEY_CLASSES_ROOT\.xms]
@="xmlfile"
"Content Type"="text/xml"

[HKEY_CLASSES_ROOT\.xms\OpenWithList]

[HKEY_CLASSES_ROOT\.xms\OpenWithList\infopath.exe]

[HKEY_CLASSES_ROOT\InfoPath.Document.1\XML Handler\Icon]
".xms"=".infopathxml"

Attempt 2:
[HKEY_CLASSES_ROOT\.xms]
"Content Type"="application/ms-infopath.xms"
@="InfoPath.Document.1"

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1]

[HKEY_CLASSES_ROOT\.xms\InfoPath.Document.1\ShellNew]

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/ms-infopath.xms]
"CLS_ID"="{807553E6-5146-11D5-A672-00B0D022E945}"
"Extension"=".xms"

Attempt 3:
[HKEY_CLASSES_ROOT\.xms]
@="xms_auto_file"

[HKEY_CLASSES_ROOT\xms_auto_file]
@="Sampling Guideline"

[HKEY_CLASSES_ROOT\xms_auto_file\DefaultIcon]
@="C:\\Program Files\\Microsoft Office\\OFFICE11\\INFOPATH.EXE,1"

[HKEY_CLASSES_ROOT\xms_auto_file\shell]
@="open"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\command]
@="\"C:\\Program Files\\Common Files\\Microsoft
Shared\\OFFICE11\\MSOXMLED.EXE\" /verb open \"%1\""

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec]

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Application]
@="MSOXMLED"

[HKEY_CLASSES_ROOT\xms_auto_file\shell\open\ddeexec\Topic]
@="System"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top