Hi Mikhail,
I set the map mode and it works for MS Word, but for Paintbush it's
still the same, any further suggestions please?
And another flaw in my patch: I only used the object name as the print
job title. How can I get the document title in this case please?
Best Regards,
Felix.
Mikhail Voytenko
Hi Felix,
Please see my comments inline.
On 03/26/09 10:41, Zhang Xiaofei wrote:
Hi Mikhail,
Thanks a lot for your help, and here is a patch that makes MSOLE
printable at last. :-)
However I find there are still several problems to be dealt with:
1. The object, when standalone, does not print the same scale as in
the document. For MS Word it's about 4~5 times larger, while for
Paintbrush it's bizarrely small, only about 20% small. ( I took a
photo with my phone, it's temporarily available at
http://s5.tinypic.com/ih4dwp.jpg )
Please try to set the correct map mode on the printer before printing.
Please use the following call
pPrinter->SetMapMode( VCLUnoHelper::UnoEmbed2VCLMapUnit(
m_xObject->getMapUnit( m_nAspect ) ) );
before you start the printing.
2. The aTitle we got for the job is not printed to paper. I'm not
sure if this feature is available for the whole document, but it's
not the default behavior at present.
The title is set to have the job name, so the behavior is ok I assume.
3. This is actually a question: Could you please explain what a
printer state is when pPrinter->IsPrinting() is true? Does it mean
there's other printing jobs in the queue? Is it the same state as
when the printer has to "Wait", as in css::view::PrintOptions::Wait ?
As I understand IsPrinting() describes more a state of the internal
printer object, not the system print queue.
The property css::view::PrintOptions::Wait just let the object
representing printer per UNO-API print synchronously. From this point
of view it looks to be related to the IsPrinting() call, since the
print() call does not return until the printing has been ended.
Best regards,
Mikhail.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org