Showing posts with label jqprint(). Show all posts
Showing posts with label jqprint(). Show all posts

Monday, February 13, 2012

Print Using jquery


JQuery allows you to print the selected object, for this you need to use JQuery plug-in.

After adding JQuery plug-in you can use printing functionality of JQuery and you can easily print selected object in web page.

Now use this code-

 Method 1:

var printObject= $("#ControlName");
printObject.jqprint();


 Method 2:

$("#ControlName").jqprint();

In this example, I have used jqprint() method, which is inbuilt method defined in JQuery print plug-in. here “ControlName” is the name of control to which you want to print.


Thanks