Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

printView

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elmer Miller - 16 Sep 2004 19:46 GMT
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.
Greg Collins [MVP] - 16 Sep 2004 23:41 GMT
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.

Signature

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.
Jerry Thomas [MSFT] - 17 Sep 2004 06:58 GMT
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.
Signature

Jerry Thomas[MSFT]
<Jerryth@online.microsoft.com>
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.

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.

Signature

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.
Elmer Miller - 17 Sep 2004 20:29 GMT
Thanks, I thought of using multiple print views to handle the different
background images necessary, but when that didn't work I didn't think of
using multiple main views to handle the different print views. I think that
will work for me.

>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.
[quoted text clipped - 27 lines]
>
> Any ideas would be appreciated. Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.