Starting InfoPath from Browser

C

caspar

I create a link on a HTML-page to an XML-document, that was created
with InfoPath. (Everything local on my machine, Win XP)

When I click the link the document opens in InfoPath --> That's what I
want.

Question 1:

On some computers in our office (Win XP, InfoPath and IE 6 installed)
the same xml-file is not opening in InfoPath but in Internet Explorer.
That only happens, if we try to open the document from a link. If we
double-click the xml-file, then it opens in InfoPath.

I think that IE on these computers somehow ignores the InfoPath
processing instructions.

Does anybody know, how this could be fixed?

Question 2:

If we use Netscape 7 and try to open an infopath-created xml-file only
the xml-data will be displayed within the browser window. Is there a
way to tell netscape, that it should use InfoPath to open
xml-documents?

Thank you
Caspar
 
B

Brian Teutsch [MSFT]

I believe you'll need to be sure that you're sending "text/xml" as the
content type, and not including any character-encoding. Check some old
newsgroup posts about this.

Brian
 
G

G. Tarazi

I don't know about Netscape, but for IE make sure the content type is
application/ms-infopath.xml

If you decide to go with an aspx page that prints the xml in order to start InfoPath, it will be similar to this:

this.Response.ContentType = "application/ms-infopath.xml";
this.Response.Write("<?xml version=\"1.0\"?>");
this.Response.Write("the InfoPath processing instructions here");
this.Response.Write("the InfoPath xml here");
 

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