I agree with Greg that this is not supported. A workaround may be to change
the data view based on that fields value before printing.
If "Department" = HR switch to the HR view (using code).
This could be done in a short "identification" view where you get "user
name" and "dept". Then InfoPath switches to their view (which could all be
same except for different print views).
If you haven't jumped into code yet, you could have a button that would
switch views based on the value of Department.
This isn't very elegant, but it accomplishes what you need.
--
Jerry Thomas[MSFT]
<
[email protected]>
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
The print view must be set at design time. I'm not sure of any way to do
this at run time.
As for the background image changing -- take a look at the InfoPathDev.com
Example I posted yesterday titled, "Rudimentary Animation"... this may or
may not work for you due to its restrictions and whether your image is on
the body tag.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
I would like to change which of two different views is used to print a form
based on data available at run time. I know how to set this a design time
but not run time. I'm pretty sure it can be done, but haven't yet figured it
out. Any ideas?
Also, is it possible to change a background image for a view at run time?
Any ideas would be appreciated. Thanks.