It seems we can not print directly in the correct way, see here [0], otherwise you could obtain it like this: Public Sub SavePDF() Dim sPath As String Dim hReport1 As New Report1 Dim hPrinter As New Printer sPath = "/tmp/test.pdf" '<=============== hPrinter.Orientation = hPrinter.Portrait hPrinter.Resolution = 150 hPrinter.Paper = hPrinter.A4 hPrinter.OutputFile = sPath hReport1.Print(hPrinter) ' Print "Report is saved" Balloon.Info("Report is saved", FMain) End Regards Gianluigi [0] https://lists.gambas-basic.org/cgi-bin/search.cgi?q=Set+name+in+gb.report+preview 2018-02-05 16:31 GMT+01:00 Johny Provoost <johny.provoost at skynet.be>: > Hallo, > > In gb.report2 I want to change the name and path when I save the file as > pdf through a variable, but I can't seem to find out how or if it's > possible. > > Can someone please show me the way? > > Thanks, > > Johny > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180205/cc878ffb/attachment.html>