I am attempting to print a document to a Printer Mailbox.
So far I have only had marginal success.
I can do job.printDialog and the printer dialog opens up with the properties available. I can pick my Output Method of Store and select my Store Destination.
I have done this and was able to print out a line of text.
Now I have a document any random document.
PrintService ps = PrintServiceLookup.lookupDefaultPrintService();
DocPrintJob dj = ps.createPrintJob();
Doc doc = new SimpleDoc(is,df,null);
AND it goes to the printer and prints. Not to the mailbox.
I have no way to open the print dialog like I did initially. Its just not available.
MORE Research and I find.
that I can open a print dialog doing this.
PrintService printService = PrintServiceLookup.lookupPrintServices(flavor, pras);
PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
PrintService service = ServiceUI.printDialog(null, 200, 200, printService, defaultService, flavor, pras);
But the properties button of the Printer set up in the dialog is greyed out and if I print the file goes straight to the printer and not the mailbox.
I did some looking and found that the IPP protocol has a mailbox-N attribute listed in it