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
Ben walters - 25 Aug 2005 05:21 GMT
Hey Richard
When doing your export to need to refer to the file name fully e.g.
Export("C:\Test.mht","MHT")
Cheers
Ben
> Hi
> I have tried using a button to do this using the jscript code:
[quoted text clipped - 8 lines]
>
> Thanks
Richard - 26 Aug 2005 23:16 GMT
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.