OnSwitchView and Print Preview

G

Greg Collins [InfoPath MVP]

Print Preview does not count as a view switch. It instead loads a separate application for previewing the form.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi,

I have a piece of code that performs formating so that repeating table will
have their headers printed across multiple pages.
(see
http://www.infopathdev.com/howto/tutorials/default.aspx?i=80c11a66b08a4572bc2b17f391319a0f)

I have the code called from OnSwitchView. But this event does not appears
to be called with I click on Print Preview on the form itself.

Can anyone help?
 
G

Greg Collins [InfoPath MVP]

No. There is no event for print preview.

The only way to do that is to create your own button which uses code to print... but then this requires that your form be full trust.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Is there any way for code to be triggered when previewing a form?
 
Top