Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print All Views in MultiView

Status
Not open for further replies.

jomax

Programmer
Jun 16, 2003
18
US
I have given the user the ability to print the entire content in each of the Views in a Multi-View. But, if the user wants a complete report of all the views in a Multiview, how would I go about doing that? Thank you!
 
What do you mean a complete report of the views?

David Kuhn
 
Currently, the user may print the contents of an individual view at a time. I have three views. So if there are on View2, they are able to print View2 only.

I would like a way to print all three views with one click of a (printer friendly) button. So it would be something like:

for each view in MultiView
print content in view1
print content in view2
print content in view3
 
Thanks, Mark. Can I render images to the HtmlTextWriter, too? There are chart images included in the content.
 
another option.
move the contents of each view into a web user control.
have n + 1 views. each view gets a user control. the last view gets all the user controls.
printing the 4th view is just like printing all the others.

example
Code:
UC1.ascx
UC2.ascx
UC2.ascx
Code:
<multiview>
 <views>
  <view 1><UC1 /></view 1>
  <view 2><UC2 /></view 2>
  <view 3><UC3 /></view 3>
  <view 4><UC1 /><UC2 /><UC3 /></view 4>
 <views>
</multiview>

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top