Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 December 9th, 2003, 10:25 PM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nagesh07
Default Customize Printing in ASP



Dear all,

I am not sure whether this post should be under this part, anyway... thanx for reading.

I have an application, where at the end of the transaction, the users are required to print confirmation slips. All these were working fine until the management decided to have a pre-printed layout for the slips.

Therefore, now I am stuck in the part of customizing the printing for the layouts.For example:

           a) In the TIME section -> time should be printed
           b) In the DATE section -> date should be printed ext

Is there any method that I can use to actually control the layout postioning in ASP?... I am really stuck ... and as the deadline given is only 1 week .. I really will appreciate any help ....

Thank you in advance.

Sincerely,
nagesh

 
Old December 10th, 2003, 03:04 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are all your users running the same system with the same printer?

If not, you may have gotten a pretty difficult task. Printing the same stuff with a complex layout on different systems could really turn out to be hard. Systems have different fonts, different margins, font sizes etc.

The best thing you could do is to create your pages as simple as possible. So do not assume you can use the entire page (A4, Letter, whatever) that your system can print on.

To create the confirmation page, output your stuff to the browser as you would do for normal pages. You can use HTML and CSS techniques to control the layout of your pages. If you need to control page breaks, take a look here.

If you elaborate a bit about what exactly you're trying to accomplish, we may be able to provide you with more tips.

Regards,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 10th, 2003, 03:17 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nagesh07
Default

Hi Imar,

Actually, I have some sort of managed to find out a solution.Yes, I am using the CSS to control the layout .. hiding some of the elements while printing ... I also realised the fact that the users will be using different printers...

Thanx for the quick reply.

Regards,
Nagesh






Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize Datagrid Mohamed_sherief ASP.NET 2.0 Professional 5 August 23rd, 2007 09:31 PM
customize Paula222 ASP.NET 2.0 Professional 0 November 9th, 2006 12:19 AM
how to customize asp.net web application deploymen benilpj ASP.NET 1.0 and 1.1 Basics 0 May 24th, 2006 06:46 AM





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