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
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
Hello Regina,
I am using Java, trying it like that:
PropertyValue[] args = new PropertyValue[3];
args[0] = new PropertyValue();
args[0].Name = "DocName";
args[0].Value =
getTitlePropertyValue(getXDesktop().getCurrentComponent());
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
Hi Tengiz,
Tengiz Merabishvili schrieb:
Hello Regina,
I am using Java,
then someone else should help you. Perhaps you can ask in the forum?
Using the dispatcher is nothing special.
Or have you already searched for dispatcher in the developer guide? Most
examples are in Java there.
Hello Regina,
Everything works now, thanks a lot for your help.
This is the final code in case anyone has the same problem:
PropertyValue[] args = new PropertyValue[0];
XDispatchProvider xTempDispatchProvider = unoQuery(XDispatchProvider.class,
xTempNewDocumentController.getFrame());