i'm working on a winform app which hosted of infopath form.
is there any way to display print preview of infopath form from code ?
in my form, i've used this code to show print preview of the current infopath form :
but i got this exception :
Specified cast is not valid.
can anybody help me where is my problem and how to work-around this ?
thanks in advance
View Complete Post