printing Infopath Forms from webpart code

T

- the humble me -

Hi,

Does anyone know how to programmatically print an infopath form from a
sharepoint form library (instead of opening it in a browser)?

From a Sharepoint webpart, instead of opening the form with Infopath, I need
to print it.

Currently the code calls Context.Response.Redirect(
"url_to_the_form_template.xsn" );
to open the form. I'd like to print the infopath form directly instead.

thanks
 
Top