Exporting to Word

J

Jon Westmore

We've created an infopath application that will submit data to a SQL
database. That was the easy part. We'd also like to export each new
instance of the form to a Word document and save it with a unique name on a
network folder for various nefarious purposes. Any tips on how to
accomplish this?

Thanks,
Jon
 
B

Brian Teutsch [MSFT]

I'm sorry, but nefarious purposes aren't a supported use of InfoPath. :)

Your form will have to be fully trusted, but InfoPath has OM to export the
current view as an MHT file - XDocument.Export(). That MHT is fully openable
and editable in Word, without any form fields of course.

There are more advanced techniques if the InfoPath view isn't enough, but
start with that.

Brian
 
A

Antonio Rome

Is there a way to save the form as .doc? I have a huge form with many section
including rich text box and several users who work on it over the year. When
all of them finish, the form must be published in a new sharepoint document
library as .doc document maintaining original fonts, bold text etc.. I can't
use the wizard included in Sp1, since the publish action is performed by the
last user, so I should use a server side application or similar to do this.
Is this possible?
 
B

Brian Teutsch [MSFT]

InfoPath will not output a .doc file, but once you have a full-trust form
that can create a .mht file, you can use Word to open that file and save it
in .doc format. You should do this on the user's desktop, not on a server.

Brian
 
A

Antonio Rome

This doesn't solve my problem. I need to trasform the InfoPath form published
in a sharepoint form library in a word document (by requirement: a .doc file)
and publish it in another document library on the same sharepoint site. I
think that conversion in .doc file is a common problem since I read other
similar question (someone in this newsgroup like
http://www.microsoft.com/office/com...684b&mid=962ed0ee-6b97-436e-9281-d957dd08684b).
I wonder if this is possible.

Thank you for your reply.
Antonio
 
B

Brian Teutsch [MSFT]

You'll get a lot better info in the SharePoint discussion groups, but
running Word or InfoPath on a server is not supported. The method I
suggested is one way to get to a .doc from InfoPath XML, but you shouldn't
do it on a server.

Brian
 

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