Hi, Primary question: How to specify a user's default printer with Calc?
Situation: A municipal office in a small town of Japan is now introducing StarSuite 8 PU5 on a newly purchased server system with 170 SunRay terminals. Current problem: StarSuite 8 PU5 Calc running on Solaris 10 SPARC seems not to follow a choice of user's default printer. Calc shows a printer name defined in a system wide template file, instead of user's choice of the default printer name defined in a file $HOME/.lpoptions: "Default printername" which is automatically written by an application of the CUPS system. All application except Calc works fine with the file .lpoptions which will be loaded by the shared library files of the CUPS system. The SunRay system has introduced Sun Desktop Manager to centrally manage configuration settings of StarSuite 8 and other applications on Sun Java Desktop System. The default template file for Calc is specified by the system and is accessible for all users. The template file of Calc has only a sheet, which is requested by the customer. They do not want to check empty sheets named sheet2 and sheet3 every time as they open an Calc file. Unfortunately, the Calc template file has information on a printer that was coincidently chosen when the template file was prepared. An internal file settings.xml of the Calc template file has two elements PrinterName and PrinterSetup. Normally, such information will be ignored if an option "Load user- specific setting with the document" in the dialog Tools/Options/ Load/Save/General is disabled. The option is enabled by default. The option, however, has to be disabled to avoid another problem and has been already disabled through the Sun Desktop Manager. Another problem is that: 1. User A creates a document and prints and saves it in his office on the first floor. 2. User B opens the document and click an icon to print on the tool bar in her office on the second floor. She will never have her handout. It will be found in a printer bin in his office on the first floor. Why? Because settings.xml in the ODF file remembers the last printer and OOo/SO/SS uses it, instead of her default printer. How to avoid such a problem? The easiest way might be to disable the option mentioned above. Current status: Our system integration team has found a quick solution to solve the problem around the default printer. The problem was, in short, only Calc did not recognize user's default printer and used a printer specified in the template file as a default printer. To solve it, we have removed two elements PrinterName and PrinterSetup from the system wide default template file for Calc by hand. The template file will be maintained by the customer after our team finishes system integration. Two problems that still remain: 1. Calc seems to ignore the option mentioned above and to use printer name specified in a Calc file, instead of user's default printer. That will lead a big problem. 2. If the customer want to replace the template file by themselves, they will find difficulties to remove information on the printer from the template file. This might be a small problem. Our team has already developed a small Perl script to do that. Any idea? Thanks in advance, Tora --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]