hello friends i want to do printing in java without showing the print dialog and also want to set boarders accordingly. i found this thread Printing (no dialog) but dont know what to write in the method 'printText(myJob, g, s);' please help me