Print function does not take any parameter, it just print the window data.
As long as your data is html (to be properly formatted and viewed) you can open a new window where you set your data in, close it and use the print function with it since the object will still be available, you can also link any CSS
specific to the printed data in the new window :
$.get("http://example.com/invoice.html", function( data ) {
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write('<html><head><title>DIV Contents</title>');
printWindow.document.write('</head><body >');
printWindow.document.write(data);
printWindow.document.write('</body></html>');
printWindow.document.close();
printWindow.print();
});