Export to MHTL using code

S

salva.gomez

Hi all,
i want to export my filled form using this code in a button :

XDocument.CurrentView.Export('C:\\Temp\\Test.mhtml', "MHT");

but when i push the button i receive this error

Error:

'XDocument.CurrentView' es null or is not an objet
File:script.js
Líne:28


Can anyone help me? I'm newbie in infopath coding

Thanks

Salva.
 

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