Export to Web Error

R

Richard

Hi
Every time I try to export an Infopath form as a .mhtml by clicking on
file -> export to -> web...? I recieve an "Infopath cannot save the
form." error. Does anyone know how I can fix this? I have given full
trust permissions to the form and I have digitally signed it in
creation.

Thanks
 
R

Richard

Hi
I have tried using a button to do this using the jscript code:
XDocument.View.Export("C:\test", "MHT");
And it causes this error:
The following error occurred:

The following URL, path, or file name is invalid: C: est
The file path referred to by an object model call must be absolute.

Can anyone help please?

Thanks
 
B

Ben walters

Hey Richard
When doing your export to need to refer to the file name fully e.g.
Export("C:\Test.mht","MHT")

Cheers
Ben
 
R

Richard

Hi Ben,

Yes I tried that when I was testing this. I forgot to reply to this
post a while ago as this problem was resolved a while ago already. It
ended up being that Infopath uses Outlook Express to export the .mhtm
file and my company has implemented some security patches that lock up
Outlook Express so the file could never be created. Hope that helps
anyone that ever runs into this issue.
 

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