Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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