[Gambas-user] Printing a PDF
Rolf-Werner Eilert
eilert-sprachen at ...221...
Wed Oct 14 10:39:00 CEST 2015
I found it! The shell or the kprinter or lp or whatever need a complete
path, like /home/mydir/thefile.pdf. But I had a "~" instead.
So now it's running like expected, at least.
Rolf
Am 14.10.2015 10:09, schrieb Fabien Bodard:
> Gambas it's able to generate a pdf file itself by setting the printer file
> property.
> Le 14 oct. 2015 09:11, "Rolf-Werner Eilert" <eilert-sprachen at ...221...> a
> écrit :
>
>> Maybe somewhat silly, but I got stuck here:
>>
>> From a Gambas program I try to print a PDF file. Up to now (old version
>> in Gambas2), with PS files, I do
>>
>> Exec ["kprinter", "--nodialog", "-d", drucker.Name, feld[1]] Wait
>>
>> where feld[1] holds the path to the ps-file to be printed.
>>
>> Now when I want a PDF this way, up comes the message "no file to be
>> printed".
>>
>> So I guess, kprinter isn't the right way. But what instead?
>>
>> Thanks for your help
>>
>> Rolf
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list