Save as HTML using button

J

JRohde

Hi,

I have been asked if it is possible to create a button on a form, that
automatically saves the document as HTML (.mhtm) in a specified folder.
I hereby pass the question on to you.

It is possible using scripting, but is it possible without?

BTW, will it be possible to:

a. Save in "normal" HTML and
b. Fill out forms created in InfoPath using a browser (without having
InfoPath installed)

in InfoPath 2007?

TIA,

Jakob
 
G

Greg Collins [InfoPath MVP]

This requires code: XDocument.View.Export("C:\\MyView", "MHT");

Not sure about IP2007. But I suspect it is the same.
 
B

Ben Walters

Hey Jakob
As Greg alluded to you can export this form using the
XDocument.View.Export("C:\\MyView", "MHT"); Command
you can also do this using the file>export menu when the form is in running.
You can't however link this functionality up to a button without any code.

In answer to your second question I don't believe exporting this form to a
MHTML document will allow you to then fill it out in a browser. To my
understanding doing this will create a static HTML doc that doesn't contain
any controls.

Filling the form out in the browser is possible however in InfoPath 2007.


Hope this helps

Cheers
Ben
 

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