In a page I have 20 fields including image field, And I have 4 buttons like, submit, preview,send Email, cancel.

If i click the print button it has to show what are the fields I have entered with values after that it has to take in printout, for this I am using .xps document.
How to do that?

Member Avatar

So you are targetting the specific MS XPS, not the Open XPS file format? You will most likely need a third party sript for this. There are many PDF apps, like FPDF, but I've not come across a free one for XPS. Perhaps they exist, try searching.

OK thank you for your kind information