// create a report instance, assigned to a print tool.
reportprinttool pt = new reportprinttool(new xtrareport1());
// invoke the print dialog.
pt.printdialog();
// send the report to the default printer.
pt.print();
// send the report to the specified printer.
pt.print("myprinter");