View Full Version : printing
10-19-2003, 03:11 AM
Need to print a document like a invoice. Does it take client side only?
10-19-2003, 05:57 AM
10-19-2003, 07:43 PM
So I can never have clients printing the invoices of this intranet?
10-19-2003, 09:42 PM
Yeah so your ASP page builds the page and sends it to the client and then you can use the following code to bring up the print dialog box for them to print it.
window.onload = PrintPage;
10-21-2003, 03:02 AM
10-21-2003, 03:23 AM
I did something like that using FSO too, where .txt file is formatted automatically (using spaces for formatting instead of tables, etc.) and opened by the browser, and then the user can print to their heart's content.
Then I delete it on Session_End using the global.asa file...
... it seems to work pretty well, allowing that you've made the user login using cookies or a session variable.
Seems like the above solution worked ok for you too though, and mine was more of a successful intranet experiment than anything else! :)
10-21-2003, 04:07 AM
didn't get you, whammy
10-21-2003, 04:19 AM
Ahh! Well as long as you have it working, great.
10-26-2003, 07:43 AM
last month I found myself trying to print an invoice as well...
The results were not what we expected since it was hard to format the tables in order to make it look as the invoice they were using before coming from a print shop.
We ended up using a pdf component to generate a pdf document and then print from there...
It worked out great!
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.