Apache OpenOffice (AOO) Bugzilla – Issue 8499
Macros werden nicht unter Ooo1.0.0 von der api ausgeführt.
Last modified: 2003-01-17 14:09:04 UTC
Hab ein Macro zum doppelten Druck erstellt, nach einer Vorlage, jedoch OpenOffice führt es nicht aus?
Created attachment 3233 [details] Basic-Script, des Doppeldruck-Macros
Meine Rechner-Daten: Linux -2.4.18 fvwm2 SuSE7.3 Ooo1.0.0 glibc-2.2.4
Nach dem ich oDocument as ThisDocument in as ThisComponent umgewandwlt habe, druckte Ooo mir statt zwei Seiten nur eine aus,
ThisDocument belongs to the old API, thus ThisComponent is correct. I guess, your document has one page, and it is only printed once? Now the question is, why the copy count is not used. This is an impplementation issue in the framework.
The CopyCount needs to be given as an *Integer* value: Sub Doppeldruck oDocument=ThisComponent Dim mPrintopts2(0) As new com.sun.star.beans.PropertyValue mPrintopts2(0).Name="CopyCount" mPrintopts2(0).Value=2 oDocument.Print(mprintopts2()) End Sub This macro works in OOO643 and OOO1.0.1
I have exactly inserted your macro and tested, but Openoffice printed my Document only once, so i reopen this yet. Thanks for your help, Christoph
This maybe an Linux problem, if I open a document an Click File->Print.. an chose copies 2 and click ok, then the document will printed only once. I guess, that the copy-function is defect or Linux-Cups doesn't interpret this command.... Christoph
You use the wrong version. The bug does not occur in OOo1.0.1(!) or the new developer build. I'm not sure if it worked in OOo1.0 or not. So if you like it better, I set the state to FIXED instead of WORKSFORME. ;-)
I tested it on my windows platform and there it is working.... But I like my linux-platform :-).
.