Decided to post here too...

...So i have this code...

Dim oPropertyValue(0) as New com.sun.star.beans.PropertyValue
oDoc = ThisComponent
oPropertyValue(0).Name = "Print only selected sheets" :
oPropertyValue(0).Value = True
oDoc.Print(oPropertyValue())

...Which should print only the selected sheets but unfortunately it prints
all sheets which have text on them, were they selected or not.

What i am not allowed to do is that to put from options it so that it will
print only selected sheets because my employers want the button and the code
to do all the work so that they dont have to touch the options at all.
-- 
View this message in context: 
http://www.nabble.com/Code-to-print-only-selected-sheets-tp16323385p16323385.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to