Hello Tobias!

Thank you for your answer.

Am 13.11.2006 13:14 schrieb Tobias Krais:
>> In a calc document i want to place a button with that the user can print
>> the actual sheet or rather the defined (and named) print area at the
>> sheet. But i can't find the right print options to do that.
>
> please see the code attached. It is free, again.

This is a good example, but not this that i need.
(I use Basic, but this isn't a problem.)

My workaround is equivalent to this code, where myPages is set by the
button tag. (Ich habe einen Knopf auf der Tabelle, der das Makro auslöst
und in der Zusatzinformation die zu druckende Seite(nnummer) übergibt.)

>               // Setting the property "Pages" so that only the desired pages
>               // will be printed.
>               PropertyValue[] printOpts = new PropertyValue[1];
>               printOpts[0] = new PropertyValue();
>               printOpts[0].Name = "Pages";
>               printOpts[0].Value = myPages;

The problem is, that in the document the tables must not be moved or
deleted, because the print page number will not be right further more.

So the question is: how can i figure out, which print page number has
the actual sheet? Or, how can i figure out, on which print page(s) will
a special print area reside?


greetings
        Mathias
-- 
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-·

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

Reply via email to