3.4_release_blocker requested: [Bug 118032] getPrinter behavior changed between oo3.2.1 and oo3.3 - causing exception
[email protected] Mon, 16 May 2011 14:29:51 +0000
| Newsgroups | gmane.comp.openoffice.releases |
|---|---|
| Message-ID | <[email protected]> |
[email protected] has asked for 3.4_release_blocker: Bug 118032: getPrinter behavior changed between oo3.2.1 and oo3.3 - causing exception http://openoffice.org/bugzilla/show_bug.cgi?id=3D118032 ------- Additional Comments from [email protected] I am maintaining an old Delphi app that works fine with oo3.2.1 and earlier= .=20 Its interface with OpenOffice uses Bernard Marcelly's "OOo Tool". Since oo3.3, getPrinter causes an exception as follows: EVariantBadVarTypeError=20 Description: "Invalid Variant Type...raised when a variant operation fails because of a value that isn't a valid variant type." It looks like the getPrinter method behaves differently since oo3.3. Is th= is by design? Perhaps there is a bug? I would be very happy to look at the source code, but do not know how to ob= tain it. I would want to compare the source of getPrinter between v3.2.1 and v3= .3. Regards Julian Brewer P.S. The code that throws the exception is marked (***) below. I stress that this all worked fine until v3.3: docs[di].v :=3D StarDesktop.LoadComponentFromURL(URL, '_blank', 0, fileProp= ); [...] function ToOoDoc.docPrinterBusy( docIndex : integer) : boolean; var queryPrinter : variant; i : integer; begin result :=3D false; if not docs[docIndex].isOpen then exit; (***)queryPrinter :=3D docs[docIndex].v.getPrinter; [...] end;--=20 ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help