I have a Mac OS X 10.3.9 running a Servoy client. I seem to not be able to switch printers to a shared printer to print a layout. It works on Windows, with a little arm wrestling. I realized that on Windows I had to also provide the host computer. But it doesn’t work the same on the Mac side. I am at a loss. Any help would be greatly appreciated. Here is my code:
if (utils.stringLeft(os, 1) == 'W')
{
forms.job_camera_report_print.controller.setPreferredPrinter("\\\\\win3k\\operators");
forms.job_camera_report_print.controller.print(true,false);
forms.job_camera_report_print.controller.print(true,false);
forms.cr_spec_sheet.controller.setPreferredPrinter("\\\\\win3k\\operators");
forms.cr_spec_sheet.controller.print(true,false);
forms.job_camera_report_print.controller.setPreferredPrinter("\\\\\pdc\\io");
forms.job_camera_report_print.controller.print(true,false);
forms.job_camera_report_print.controller.print(true,false);
}
else if (utils.stringLeft(os, 1) == 'M')
{
forms.job_camera_report_print.controller.setPreferredPrinter("operators");
forms.job_camera_report_print.controller.print(true, false );
forms.job_camera_report_print.controller.print(true, false );
forms.cr_spec_sheet.controller.setPreferredPrinter("operators");
forms.cr_spec_sheet.controller.print(true, false );
}