• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
printing an invoice using CI

#4
[eluser]rwestergren[/eluser]
[quote author="rangana" date="1281038947"]what i meant was i need to take a hard copy of the registration form, now we can put a print button there, how to code to that button? that was my question? how to perform a printout by pressing a button, how to code to the button it self to get out a print out?[/quote]

Coding a button to print the current page? You can bind a jQuery click event to the button and have it print like this:

Code:
$(document).ready(function()
{
        $('#button1').click(function()
        {
             window.print();
        });
}


Messages In This Thread
printing an invoice using CI - by El Forum - 08-05-2010, 06:15 AM
printing an invoice using CI - by El Forum - 08-05-2010, 08:05 AM
printing an invoice using CI - by El Forum - 08-05-2010, 09:09 AM
printing an invoice using CI - by El Forum - 08-05-2010, 09:25 AM
printing an invoice using CI - by El Forum - 08-05-2010, 09:38 AM
printing an invoice using CI - by El Forum - 08-05-2010, 09:48 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.