473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

print preview page

I have a web form that has a dozen or so textboxes and drop downs on it and
several buttons. I have a print button on the form as well, when the user
clicks the print button I want to take the user to a print preview page with
only certain textbox (values only) and the associated labels to each
textbox. I want to the print preview page to be a certain format (table,
bold labels, etc),
How can I accomplish this? I've seen the print media, but its not working
like I want it to.


Aug 12 '08 #1
6 2699
"Mike" <wh***************@gmail.comwrote in message
news:uA*************@TK2MSFTNGP06.phx.gbl...
How can I accomplish this?
Well, at the risk of stating the obvious, create a new page which contains
only the controls that you want to print and redirect the user to it...
I've seen the print media, but its not working like I want it to.
Can you be a bit more detailed...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 12 '08 #2
how can I carry all of the values over for each textbox other then a
querystring?
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:el**************@TK2MSFTNGP02.phx.gbl...
"Mike" <wh***************@gmail.comwrote in message
news:uA*************@TK2MSFTNGP06.phx.gbl...
>How can I accomplish this?

Well, at the risk of stating the obvious, create a new page which contains
only the controls that you want to print and redirect the user to it...
>I've seen the print media, but its not working like I want it to.

Can you be a bit more detailed...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 12 '08 #3
"Mike" <wh***************@gmail.comwrote in message
news:ut*************@TK2MSFTNGP06.phx.gbl...

[top-posting corrected]
>>How can I accomplish this?

Well, at the risk of stating the obvious, create a new page which
contains only the controls that you want to print and redirect the user
to it...

How can I carry all of the values over for each textbox other then a
querystring?
Session.

Database

Open a new browser window and use window.opener:
http://www.webreference.com/js/tutorial1/opener.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 12 '08 #4
I would rather keep it on the client side if possible since its a data entry
form only and no db is involved with it.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Mike" <wh***************@gmail.comwrote in message
news:ut*************@TK2MSFTNGP06.phx.gbl...

[top-posting corrected]
>>>How can I accomplish this?

Well, at the risk of stating the obvious, create a new page which
contains only the controls that you want to print and redirect the user
to it...

How can I carry all of the values over for each textbox other then a
querystring?

Session.

Database

Open a new browser window and use window.opener:
http://www.webreference.com/js/tutorial1/opener.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 12 '08 #5
"Mike" <wh***************@gmail.comwrote in message
news:up**************@TK2MSFTNGP02.phx.gbl...

[top-posting corrected again]
>>>>How can I accomplish this?

Well, at the risk of stating the obvious, create a new page which
contains only the controls that you want to print and redirect the user
to it...

How can I carry all of the values over for each textbox other then a
querystring?

Session.

Database

Open a new browser window and use window.opener:
http://www.webreference.com/js/tutorial1/opener.html

I would rather keep it on the client side if possible since its a data
entry form only and no db is involved with it.
So open a new browser window and use window.opener:
http://www.webreference.com/js/tutorial1/opener.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 12 '08 #6
I would rather keep it on the client side if possible since its a data
entry
form only and no db is involved with it.
Why would they need to print a data entry form?

-Darrel

Aug 12 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
24
by: Rhino | last post by:
I am dabbling with print CSS for the first time and I need some guidance. The web pages on my site look fine - to my untrained eye - when displayed on the monitor in any of the standard browsers....
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
0
by: ShaneO | last post by:
There have been similar questions raised in the past, however no answers seem to have been provided, so I thought I'd give it a go. Scenario 1: My Windows Forms app generates (say) 10 pages in a...
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
9
by: igotyourdotnet | last post by:
I need to create a print preview page BUT my page I need to print has a grid and in the grid I have 2 or 3 columns that have links I want to hide the columns with the links on my print preview page...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
7
by: Fareast Adam | last post by:
I try to hide the print preview button that inside <div id="button"> when previewing the page. But the the problem happened the button is always hidden after i closing the preview page. Anyone have...
1
by: jack | last post by:
Hi all Was working on Office web component 3.0 which fits in to my projects. but came across one problem in excel when we give the print preview it displays the whole format of the sheet. even...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.