I need to print a string using java so I fond the following solution After googled a lot. I have done some changes to print the string without showing the print dialog. My p
private static final String mText = "SHOP MA" + "\n" + + "----------------------------" + "\n" + + "Pannampitiya" + newline + + "09-10-2012 harsha no: 001" + "\n" + + "No Item Qty Price Amount" + "\n" + + "1 Bread 1 50.00 50.00" + "\n" + + "____________________________" + "\n";
This should work.