Export method

L

Lee Newson

Hi,

i have a form that when the user has filled in i want to be able to submit
it to a form library (this works) and at the same time export the form to a
document library in MHTML.

to do this i am using the following:

XDocument.View.Export("http://servername/sites/sitename/doclib/formname",
"MHT")

I have fully trusted the form and have installed it so that i can test this
functionality. At the moment the form falls over when it gets to that line.

I have also tried using \\\\servername\\sites\\sitename\\doclib\\formname
but both ways don't want to work.

Is this because you can't use network paths with the Export method?? If this
is the case is there another way to do it?

Cheers for any help in advance

regards

Lee
 

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