http://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=56708 Пробую сделать так. но ошибка.
// Create the object that will not be directly usable until OOo 3.5.
oPrintServer = Новый COMОбъект("com.sun.star.awt.PrinterServer");
oCore = Новый COMОбъект("com.sun.star.reflection.CoreReflection");
// Get the class object for the XPrinterServer interface.
oClass = Новый COMОбъект("com.sun.star.awt.XPrinterServer");
// Get the getPrinterNames method for the XPrinterServer class.
oMethod = oClass.getMethod("getPrinterNames");
Array = Новый COMSafeArray("VT_VARIANT",10);
// Call the getPrinterNames method on the PrinterServer object.
GetAllPrinterNames = oMethod.invoke(oPrintServer, Array);
Ошибка при вызове конструктора (COMОбъект): Недопустимая строка с указанием класса: Недопустимая строка с указанием класса
oPrintServer = Новый COMОбъект("com.sun.star.awt.PrinterServer");
Кaк может человек ожидaть, что его мольбaм о снисхождении ответит тот, кто превыше, когдa сaм он откaзывaет в милосердии тем, кто ниже его? Петр Трубецкой