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
Greg Collins [InfoPath MVP] - 02 Aug 2006 23:28 GMT
This requires code: XDocument.View.Export("C:\\MyView", "MHT");
Not sure about IP2007. But I suspect it is the same.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )
Ben Walters - 03 Aug 2006 02:57 GMT
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
> Hi,
>
[quoted text clipped - 15 lines]
>
> Jakob