Frank Schönheit - Sun Microsystems Germany wrote:
Hi Drew,
Really? Isn't this just some "export the document, using the PDF export
filter"-code, regardless of the concrete application?
Not if one is lazy and uses storetoURL then you have to pass in the
proper filter name:
...
Ah, there are indeed different filter implementations for the different
filter types ... I supposed that we have some generic "export to PDF
filter", since from the implementation, I know that PDF export is
basically the same as printing, so I would have assume we have some
generic "setup PDF export and do printing" filter. Okay, I stand corrected.
Which unfortunately means you need to really open the report definition,
and extract the property describing the export type. Not nice. And the
support for the "Hidden" flag when opening a form/report is not yet in
2.4, but only in 3.0 ....
Well, I;m pretty much done with this - but given the hour I think
waiting till tomorrow to post it, so that I can look at it again after
some sleep, makes sense.
Thought I would mention though that the question about Calc vs Writer
document is a non-issue for two simple reasons.
1 - You have to actually render the report before you can save it anyway
and at that point you know exactly what you have, SwXTextDocument or
ScModelObj
2 - Turns out you can save either document type with either filter. If
there is a difference in the resulting pdf file I can't find it, but
there probably is some difference so I stuck with using the different
filters.
@Christian - I'll put this up, with a small example database, on the
Community Forum tomorrow then and send an email here afterwards.
Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]