Hi Tengiz,
I can only tell you how to do it in Basic, and there it is exactly as I
have posted. Which language do you want to use?
Kind regards
Regina
Tengiz Merabishvili schrieb:
Hello Regina,
Thanks a lot for your reply.
I am having trouble creating a Uno service.
This is what I am trying to do:
XDispatch dispatcher =
createUnoService("com.sun.star.frame.DispatchHelper");
But I get "cannot find symbol" error for createUnoService and do not know
which package it is included in.
Could you help me with that?
Thanks,
Best Regards,
Tengiz Merabishvili
FINA Ltd | ORACLE Gold Partner
On Fri, Dec 18, 2015 at 12:41 PM, Regina Henschel <[email protected]>
wrote:
Hi Tengiz,
Tengiz Merabishvili schrieb:
Hello, I have a small question about working with documents.
Is there a function that allows me to check if the document I am currently
working on is in Page Preview state, or a function that lets me 'Close
Preview' for that document?
I searched XModel and XController classes but was unable to find anything
like that.
You can use the dispatcher and the slots ".uno:PrintPreview" and
".uno:ClosePreview" as recorded.
for example:
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:PrintPreview", "", 0, Array())
Kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]