Thanks for your response Hilary. In the second link, DocumentContainer is used. Check this line:
DocumentContainer myDocument;
How can I get this?? Do I have to include any namespace or reference or something else??
I need to know what can be done for the following scenario:
I have a infopath form along with file attachment control and a button. My requirement is using file attachment I have to upload a file from my local drive and on button click I have to zip it and attach it again to the same form, so that when some other user opens that form he should be able to see only an attached zip file.
I hope I am clear with my scenario.
Thanks in advance
Jaimin