Export form data to clipboard or .txt

C

Col. Panic

I am quite new to the InfoPath community, and would like to export selected
fields and titles to a .txt file or to the clipboard. Any ideas?
 
S

S.Y.M. Wong-A-Ton

That's OK. For either option (export to text file or copy to clipboard) you
will have to write code.

Depending on which controls you want to copy text from, you can use the
SelectText and ExecuteAction methods to cut selected text from a control and
paste it onto the clipboard (see
http://msdn2.microsoft.com/en-us/library/aa679523(office.11).aspx). See
http://blogs.msdn.com/infopath/archive/2004/04/07/109189.aspx for a list of
controls that are supported using SelectText.

To export data to a text file, you have to either programmatically run
through the fields you want to export and construct a text file, or use an
XSLT to convert the XML of the form into text. See
http://enterprise-solutions.swits.n...ata-secondary-data-source-xslt&c=infopath2003
for an example of using XSLT; the difference is that you would have to use
the XSLT on the Main data source of the form instead of on a secondary data
source.
 

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