Can we implement the printable interface in jsp? if yes, how?

Showing Answers 1 - 2 of 2 Answers

Very easy, just define a class that implement the Printable interface and then import that class and use the print() method.

public class myPrintable implement Printable {

public int print(Graphics gr, PageFormat pf, int pageIndex) throws Exception {

  super(gr, pf, pageIndex);

}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions