sandhya Posted June 27, 2008 Share Posted June 27, 2008 Hi all, I'm working with an online billing project. I did all the coding very well but, a problem is arising with the printing bill. I'm working in php, java script. while i was giving print() at the end of the form, it was printing the full A4 size and with very small text. How can i overcome this problem. And i want a print of particular table or division. How can i do it. I"ll be very thankful to u who can give me the solution. Quote Link to comment Share on other sites More sharing options...
sandhya Posted June 27, 2008 Author Share Posted June 27, 2008 please any one help me. Is it possible or not.Atleast let me know this. if anybody know the solution please help me. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted June 27, 2008 Share Posted June 27, 2008 Not really clear what the issue is but try and use a print style sheet and see if that helps... Quote Link to comment Share on other sites More sharing options...
sandhya Posted June 30, 2008 Author Share Posted June 30, 2008 hi, thanks but problem is not with database. that is mainly to print a bill. The bill format i set is not printing.I'm getting very small text and full print of A4 size paper. I mean after printing the table i created for the bill format, blank paper is coming out from the printer up to the A4 size paper. I want the print of the bill like after printing the bill, printer should stop printing. How can i do it. Is it the problem of coding or are there any settings for printing. please help me. Not really clear what the issue is but try and use a print style sheet and see if that helps... Quote Link to comment Share on other sites More sharing options...
haku Posted June 30, 2008 Share Posted June 30, 2008 You can create a stylesheet for printing, and set everything on the page except for the bill to display:none. I've never actually done it myself though. Here is some info on it so you can get started: http://www.webcredible.co.uk/user-friendly-resources/css/print-stylesheet.shtml Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.