Jump to content

problem with printing particular division of a form


sandhya

Recommended Posts

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.

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...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.