Hi list,

Not 100% related to OOo Base, but maybe someone have a answer. We are moving from a Word/COM/MS JVM solution to a OOo/Sun JVM solution to create mail merges from our Web applications. So far, everything works fine except one thing : I don't know how to change the printer when the merge is done. I set the following properties :

oObjProps.setPropertyValue("DataSourceName", nomBaseDonnees);
oObjProps.setPropertyValue("Command", nomTableDonnees);
oObjProps.setPropertyValue("CommandType",new Integer(com.sun.star.sdb.CommandType.TABLE)); oObjProps.setPropertyValue("OutputType",new Short(com.sun.star.text.MailMergeType.PRINTER));
oObjProps.setPropertyValue("DocumentURL", cheminDocMaitre);

But I don't see a property for setting the printer. In the MailMerge, I see a PrintOptions key, but I don't know how to use it and if I can set the printer.

I guess the other option would be to save the document in a directory that is part of a print server but I prefer to send the output directly to the correct printer (who is selected by the user on the Web interface).

--
Pascal Robert
Spécialiste en informatique/IT Specialist
OS communications informatique inc.
+1 450 676-1238 x28
http://www.os.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to