Printing the content of a form on a new window
Posted on 2007-11-17
This is a Domino Web Application
I have a $$viewtemplate for viewname form which displays a Map and a postal address for a location selected by a user in a field called "location field". On that same form I have a lot of other information which I don't want to print. However, I do want to print the Map & Address of the selected value in a window window(preferrably a new page) which I will apply css to so it is more presentable when printed.
So what I have
1. on the current $$viewtemplate for viewname form, a "Print" button that calls a page called "printme"
with the following onclick event
2. that opens up the new page which I set up for printing and which also have another print button with the onclick value of "window.print()"
3. Problem, I want to get the exact address & map of $$viewtemplate for viewname to open in this new window so I can print them.
How do I achieve this?
Note that, I don't want to just open & print the entire current content of $$viewtemplate for viewname in a new window because I want to use the new page that I am setting up to format the output nicely for printing
Thank you in advance
Now I need to print the Address