[Gambas-user] Printing a PDF

Rolf-Werner Eilert eilert-sprachen at ...221...
Wed Oct 14 10:25:34 CEST 2015


Yes, that's exactly what I do, Fabien.

And when I have a PDF then, what would be the easiest way to send it to 
the printer? I tried

       drucker.OutputFile = feld[1]
       drucker.Print

but nothing happened.

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