Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2006

Tip: Looking for answers? Try searching our database.

Save as HTML using button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JRohde - 01 Aug 2006 11:55 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.