Hallo Gerch,
>
>
> Sub druckenpdf(oReport AS OBJECT)
>
> DIM stUrL AS STRING
> DIM args(0) AS NEW com.sun.star.beans.PropertyValue
>
> args(0).name = "FilterName"
> args(0).value = "writer_pdf_Export"
>
> oReport.storeToURL("file:///users/strunz/Schreibtisch/loesung.pdf", args(0))
>
> End Sub
>
> Jetzt kommt aber folgende Fehlermeldung:
>
> Argument (oReport usw.) ist nicht optional
Wie rufst Du denn die Prozedur auf? oReport von dem ausgehenden Makro
ist ein Objekt, das aus einer anderen Prozedur weiter gegeben wird.
Vermutlich brauchst Du so etwas:
SUB DruckenPDF
oReport = ThisComponent
....
Gruß
Robert
--
Homepage: https://www.familiegrosskopf.de/robert
--
Liste abmelden mit E-Mail an: [email protected]
Probleme?
https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy