[Libreoffice] [MHST][Easy Hack] Get current page number for printing

Ta Duc Tung tatung2112 at gmail.com
Sun Jul 17 23:08:10 PDT 2011


On 07/18/2011 11:07 AM, Andrew Douglas Pitonyak wrote:
> On 07/16/2011 05:02 AM, Ta Duc Tung wrote:
>> Hi,
>>
>>     1. How to get current page number for printing?
>>         We've found a variable mnCurPage from printdlg.cxx but it 
>> seems not to be the right one. I think it is current page number for 
>> preview in print dialog.
>
> If I were writing a macro and I wanted to know, I would probably get 
> this from the view cursor (but that is just a guess).
>
Thank you for replying Andrew. We've managed to get the current page. 
Cause we want to pass the current page to print dialog so we went to 
unotxdoc.cxx and get the current page from SwDocShell :)
Again, thank you very much.


More information about the LibreOffice mailing list