samedi 30 mai 2015

Printing word documents without reviewing and starting MSWord

My software generates .docx file for the invoice. but my software stops responding when i click on print invoice. because system start waiting for starting ms-word and review document. my my system could not handle due to low speed.i am using following code to print.

String FILE = helper+"InvoiceCode"+invoiceno+".docx";
    Desktop desktop = Desktop.getDesktop();
                    try {
                         desktop.print(new File(FILE));
                    } catch (IOException e) {          
                    }

i want to print immediatly without review and starting MS-Word. pleas try to help urgently. I will be thankfull

Aucun commentaire:

Enregistrer un commentaire