473,322 Members | 1,566 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,322 software developers and data experts.

Print the page without loading it

While not rs.eof
<td><%=rs("InvoiceNo")%></td>
<td><%=rs("Name")%></td>
<td><a href="InvoicePrint.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 3619
"Alan" <al**@neind.net> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
While not rs.eof
<td><%=rs("InvoiceNo")%></td>
<td><%=rs("Name")%></td>
<td><a href="InvoicePrint.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="InvoicePrint.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**************@TK2MSFTNGP10.phx.gbl...
While not rs.eof
<td><%=rs("InvoiceNo")%></td>
<td><%=rs("Name")%></td>
<td><a href="InvoicePrint.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="InvoicePrint.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**************@TK2MSFTNGP10.phx.gbl...
While not rs.eof
<td><%=rs("InvoiceNo")%></td>
<td><%=rs("Name")%></td>
<td><a
href="InvoicePrint.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="InvoicePrint.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.js" 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******@NOyahoo.SPAMcom> ¼¶¼g©ó¶l¥ó·s»D:eW**************@tk2msftngp13.phx.g bl...
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**************@TK2MSFTNGP10.phx.gbl...
While not rs.eof
<td><%=rs("InvoiceNo")%></td>
<td><%=rs("Name")%></td>
<td><a
href="InvoicePrint.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="InvoicePrint.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.js" 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******@NOyahoo.SPAMcom>
¼¶¼g©ó¶l¥ó·s»D:eW**************@tk2msftngp13.phx.g bl...
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**************@TK2MSFTNGP10.phx.gbl...
> While not rs.eof
> <td><%=rs("InvoiceNo")%></td>
> <td><%=rs("Name")%></td>
> <td><a
> href="InvoicePrint.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="InvoicePrint.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
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...
4
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...
0
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....
4
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...
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...
3
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...
3
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...
6
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.