Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2006, 03:14 PM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print Setting in ASP

Is there a way to save the print setting in ASP?

We have an invoice created using ASP codes. We send the invoice to clients via email and this is printed using the client's browser. The print setting of the invoice is 0.05 on all edges and both the header and footer are blanks. Currently, this is set-up is performed by clients manually before printing the document. Is there a way, I can include this in my ASP code?

 
Old March 28th, 2006, 03:20 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I am sure there is a way to automatically set this, however, since you are priting from a browser and not from say Word, you can't "embed" margins you are at the mercy of the users computer. You could write a script that would alter these settings but, 1 you will run into security issues if you try running it from the web and 2 (if you were to get it to run) that would probably be considered a "malicious task" by most Virus Scans because you are directly messing with the browser settings. My opinion, create a word document and set the margins there and send that to your clients.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP - Setting up a blog service...need help cancer10 Classic ASP Databases 3 January 29th, 2007 09:40 AM
print page in ASP palu_2702 Classic ASP Basics 0 May 3rd, 2005 02:47 AM
Print From ASP Page arnabghosh Classic ASP Basics 0 April 19th, 2005 05:25 AM
Print (Report in ASP) mateenmohd SQL Server 2000 2 November 22nd, 2003 12:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.