Hi everyone,

Does everyone know how to open a list item that is an InfoPath form 
programmatically and print it? I tried to use below but failed:

ApplicationClass applicationClass = new ApplicationClass();
                                Microsoft.Office.Interop.InfoPath.XDocument doc 
= applicationClass._Application_XDocuments.Open(web.Url + "/" + listItem.Url, 
2);

                                doc.PrintOut();

It keeps saying that the publisher is not trusted. I'm assuming if I get a 
valid root certificate through VeriSign or something it may work...but I'm just 
wandering if any of you have tried to do this in a different way?


Cheers,

Tommy Segoro
Solutions Architect and Practice Lead
[cid:[email protected]]
L7 Solutions Pty Ltd
www.L7.com.au<http://www.L7.com.au>
2005 Aust/NZ "Cisco Partner of the Year"
2006 WA Business News Rising Star - 5th Fastest growing WA private company
2008 BRW Fast 100 - 18th Fastest growing company in Australia"
2009 CRN Fast 50 - 27th Fastest growing IT Reseller in Australia
2010 MSP Mentor Top 100 - "Globally the 27th  fastest growing Managed Service 
Partner"

T: +61 8 9221 7744
F: +61 8 9221 8199
M: +61 404 457 754
Level 14 256 Adelaide Terrace Perth WA 6000
PO Box 3044 Adelaide Terrace WA 6832

<<inline: image001.png>>

_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to