473,769 Members | 6,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print the page without loading it

While not rs.eof
<td><%=rs("Invo iceNo")%></td>
<td><%=rs("Name ")%></td>
<td><a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
<td>Print this invoice</td>
rs.MoveNext
Wend

Now user needs to click the link to open the invoice, and then select
File--Print from the menu to print it out, and then return back to print
another. As the table is very long, they need to scroll again to find the
next one.

I want to make the user more comfortable, that they
simply click the "Print" button in the end of the row, without opening the
page, print the invoice no they want. Is it possible ?

Jul 22 '05 #1
5 3650
"Alan" <al**@neind.net > wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl...
While not rs.eof
<td><%=rs("Invo iceNo")%></td>
<td><%=rs("Name ")%></td>
<td><a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
<td>Print this invoice</td>
rs.MoveNext
Wend

Now user needs to click the link to open the invoice, and then select
File--Print from the menu to print it out, and then return back to print
another. As the table is very long, they need to scroll again to find the
next one.

I want to make the user more comfortable, that they
simply click the "Print" button in the end of the row, without opening the
page, print the invoice no they want. Is it possible ?


You could just open up the Invoice in a new window:

<a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>" target="_blank" ></a>

Also, you could educate your users to click the printer icon
(one of the Standard Buttons) rather than clicking File+Print.

If you do achieve silent printing I'd inform the user via an alert()
that an invoive print was performed; otherwise, they may click
repeatedly not knowing what's happening --
(as the printer may be located elsewhere).
Jul 22 '05 #2
Thanks for yr help, because my program run in full screen, thus no icon and
buttons, and I expected when the users click print, then a printer dialog
box appear, they can select which printer they want. So I still need the
answers. I tried to write in jscript, but don't work, I tried to post to
js.group, noone can answers, I search in Google, over hundred messages want
to do this, but no method, is it possible, or someone has another better way
to do this ?
"McKirahan" <Ne**@McKirahan .com> ¼¶¼g©ó¶l¥ó·s»D: Gt************* *******@comcast .com...
"Alan" <al**@neind.net > wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl...
While not rs.eof
<td><%=rs("Invo iceNo")%></td>
<td><%=rs("Name ")%></td>
<td><a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
<td>Print this invoice</td>
rs.MoveNext
Wend

Now user needs to click the link to open the invoice, and then select
File--Print from the menu to print it out, and then return back to print
another. As the table is very long, they need to scroll again to find the
next one.

I want to make the user more comfortable, that they
simply click the "Print" button in the end of the row, without opening
the
page, print the invoice no they want. Is it possible ?


You could just open up the Invoice in a new window:

<a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>" target="_blank" ></a>

Also, you could educate your users to click the printer icon
(one of the Standard Buttons) rather than clicking File+Print.

If you do achieve silent printing I'd inform the user via an alert()
that an invoive print was performed; otherwise, they may click
repeatedly not knowing what's happening --
(as the printer may be located elsewhere).

Jul 22 '05 #3
How about using a checkbox instead of a link in your table? Allow the user
to select the rows he wants to print, then click a single button outside the
table to print all the selected invoices? The button would submit to a page
that loads all the selected invoices, using window.print in the onload event
to bring up the print dialog.

Bob Barrows

Alan wrote:
Thanks for yr help, because my program run in full screen, thus no
icon and buttons, and I expected when the users click print, then a
printer
dialog box appear, they can select which printer they want. So I still
need
the answers. I tried to write in jscript, but don't work, I tried to
post to js.group, noone can answers, I search in Google, over hundred
messages want to do this, but no method, is it possible, or someone has
another
better way to do this ?
"McKirahan" <Ne**@McKirahan .com>
¼¶¼g©ó¶l¥ó·s»D: Gt************* *******@comcast .com...
"Alan" <al**@neind.net > wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl...
While not rs.eof
<td><%=rs("Invo iceNo")%></td>
<td><%=rs("Name ")%></td>
<td><a
href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
<td>Print this invoice</td> rs.MoveNext
Wend

Now user needs to click the link to open the invoice, and then
select File--Print from the menu to print it out, and then return back
to
print another. As the table is very long, they need to scroll again to
find the next one.

I want to make the user more comfortable, that they
simply click the "Print" button in the end of the row, without
opening the
page, print the invoice no they want. Is it possible ?


You could just open up the Invoice in a new window:

<a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"
target="_blank" ></a> Also, you could educate your users to click the
printer icon
(one of the Standard Buttons) rather than clicking File+Print.

If you do achieve silent printing I'd inform the user via an alert()
that an invoive print was performed; otherwise, they may click
repeatedly not knowing what's happening --
(as the printer may be located elsewhere).


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4
Thanks, if open all the invoice in new windows, that means the user need to
close all the windows after finished. Meanwhile, I have try the window.print
onload event before, the result of course will open the invoice first, the
different is then show the print dialog box automatically, what I want is to
print the page in routine without loading it. I search hundred of message
from other websites about this issue, it seems very popular and many people
want to do this. I have download a "PrintHid.j s" from microsoft.com, but it
can't work with ASP routine, since one is client-side and one is
server-side. I search for this answer for a long time, Can anyone help me.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> ¼¶¼g©ó¶l¥ó·s»D: eW************* *@tk2msftngp13. phx.gbl...
How about using a checkbox instead of a link in your table? Allow the user
to select the rows he wants to print, then click a single button outside
the table to print all the selected invoices? The button would submit to a
page that loads all the selected invoices, using window.print in the
onload event to bring up the print dialog.

Bob Barrows

Alan wrote:
Thanks for yr help, because my program run in full screen, thus no
icon and buttons, and I expected when the users click print, then a
printer
dialog box appear, they can select which printer they want. So I still
need
the answers. I tried to write in jscript, but don't work, I tried to
post to js.group, noone can answers, I search in Google, over hundred
messages want to do this, but no method, is it possible, or someone has
another
better way to do this ?
"McKirahan" <Ne**@McKirahan .com>
¼¶¼g©ó¶l¥ó·s»D: Gt************* *******@comcast .com...
"Alan" <al**@neind.net > wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl...
While not rs.eof
<td><%=rs("Invo iceNo")%></td>
<td><%=rs("Name ")%></td>
<td><a
href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
<td>Print this invoice</td> rs.MoveNext
Wend

Now user needs to click the link to open the invoice, and then
select File--Print from the menu to print it out, and then return back
to
print another. As the table is very long, they need to scroll again to
find the next one.

I want to make the user more comfortable, that they
simply click the "Print" button in the end of the row, without
opening the
page, print the invoice no they want. Is it possible ?
You could just open up the Invoice in a new window:

<a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"
target="_blank" ></a> Also, you could educate your users to click the
printer icon
(one of the Standard Buttons) rather than clicking File+Print.

If you do achieve silent printing I'd inform the user via an alert()
that an invoive print was performed; otherwise, they may click
repeatedly not knowing what's happening --
(as the printer may be located elsewhere).


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #5
No! I meant: open a single window with all the selected invoices displayed
in that window.

Alan wrote:
Thanks, if open all the invoice in new windows, that means the user
need to
close all the windows after finished. Meanwhile, I have try the
window.print
onload event before, the result of course will open the invoice
first, the
different is then show the print dialog box automatically, what I
want is to
print the page in routine without loading it. I search hundred of
message
from other websites about this issue, it seems very popular and many
people
want to do this. I have download a "PrintHid.j s" from microsoft.com,
but it
can't work with ASP routine, since one is client-side and one is
server-side. I search for this answer for a long time, Can anyone
help me.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom>
¼¶¼g©ó¶l¥ó·s»D: eW************* *@tk2msftngp13. phx.gbl...
How about using a checkbox instead of a link in your table? Allow
the user to select the rows he wants to print, then click a single
button outside the table to print all the selected invoices? The
button would submit to a page that loads all the selected invoices,
using window.print in the onload event to bring up the print dialog.

Bob Barrows

Alan wrote:
Thanks for yr help, because my program run in full screen, thus no
icon and buttons, and I expected when the users click print, then a
printer
dialog box appear, they can select which printer they want. So I
still need
the answers. I tried to write in jscript, but don't work, I tried
to post to js.group, noone can answers, I search in Google, over
hundred messages want to do this, but no method, is it possible, or
someone has another
better way to do this ?
"McKirahan" <Ne**@McKirahan .com>
¼¶¼g©ó¶l¥ó·s»D: Gt************* *******@comcast .com...
"Alan" <al**@neind.net > wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl...
> While not rs.eof
> <td><%=rs("Invo iceNo")%></td>
> <td><%=rs("Name ")%></td>
> <td><a
> href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"></a></td>
> <td>Print this invoice</td> rs.MoveNext
> Wend
>
> Now user needs to click the link to open the invoice, and then
> select File--Print from the menu to print it out, and then return
> back to
> print another. As the table is very long, they need to scroll
> again to find the next one.
>
> I want to make the user more comfortable, that they
> simply click the "Print" button in the end of the row, without
> opening the
> page, print the invoice no they want. Is it possible ?
>

You could just open up the Invoice in a new window:

<a href="InvoicePr int.asp?WInv=<% =rs("InvoiceNo" )%>"
target="_blank" ></a> Also, you could educate your users to click
the printer icon
(one of the Standard Buttons) rather than clicking File+Print.

If you do achieve silent printing I'd inform the user via an
alert() that an invoive print was performed; otherwise, they may
click repeatedly not knowing what's happening --
(as the printer may be located elsewhere).


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #6

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

Similar topics

21
5736
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want that when the user press the print button in the browser , it print automatically the pdf file and not the html page. To do that I insert at the top of my page: <link media="print" rel="alternate" href="printthepage.pdf"> But it do not work and...
4
1956
by: Matt Mercer | last post by:
Hi, I have a asp .net/VB web app that does the typical submitting and retrieving from a SQL database. I am lost as to how I should create a print friendly page for the data. Here is the situation. The user is looking at a page with Text, asp .net controls, and buttons. I want the user to be able to hit a print friendly button and a new window will open, but this new window will have only plain text. Database fields -- and database...
0
993
by: Baren | last post by:
Hi!, I have a huge amount of data around 1lakh and i am loading the same on a web browser( Internet Explorer). The Page is not loading and application hangs. I am using Tables to print the data. I can't use paging as i need to print the complete data at one go. Please help. Regards,
4
2365
by: rom | last post by:
I need to print a html table when the user clicks on a key. the problem is that i don't want the printer dialog box to appear. i guess this is impossible in javascript so i think to create an event that will be fired by a keyup event, this event will submit the page, and i will be able to print in from the vb.net without the printing dialog box. the problem is that on the server i can't print the web table because i already submitted that...
0
1640
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 Print Preview Control. These pages are made up of varying sized graphics and text, therefore each page is unique but does rely on the content of the previous page to determine the final page layout. My User wants to print ALL pages, pages 1 &...
3
2289
by: Daz | last post by:
Hi everyone. I am making a stand alone web application, that listens for when the DOM content of a frame is loaded. Once it's loaded, I would like to stop the frame from loading further, as I already have the data I need, and the site is seriously slow. Is there any way for me to stop the frame from loading at this stage, and continue with my script processing? Many thanks.
3
2732
by: The alMIGHTY N | last post by:
I have an XSL file that works with a typically large XML data set generated dynamically from a database. This data is written to the HTML result as a deep multi-dimensional array that is used by Javascript functions to build large expanding/collapsing tables to display the data. The original developer wrote the page so that many writeln functions were called in embedded Javascript to actually write the table as the page was loading....
6
10585
by: Eraser | last post by:
hi guys.... how i would now that the iframe loading of chart fx graph is completed... i used a window.print on page load with multiple iframes on the same page.... what happen is once the print option appears and print it... some of my pages are not yet completed loading the chart fx.... any help?
1
1496
by: Hugh Oxford | last post by:
Using Javascript I can use the Window.print() function to open a print dialog box. I want to print a different page however, without loading it up first. Is there any way of using output buffering or similar to pipe the page result to the browser for printing?
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.