[Gambas-user] Printing colors in PDF
Rolf-Werner Eilert
rwe-sse at osnanet.de
Sun Jul 15 10:55:22 CEST 2018
That was the thought I had before I went to sleep :)
There is even a dialog I made for organizing, so I could extend it to
somewhat more useful.
Regards
Rolf
Am 15.07.2018 um 08:37 schrieb Fabien Bodard:
> Thats the reason why I've done my own configuration dialog for reports
>
> Le dim. 15 juil. 2018 00:02, Gianluigi <bagonergi at gmail.com
> <mailto:bagonergi at gmail.com>> a écrit :
>
> Configure opens the configuration window and printing is based on
> the configuration given by the user.
> But now I'm going to sleep.
> Goodnight
>
> Gianluigi
>
>
> 2018-07-14 23:53 GMT+02:00 Rolf-Werner Eilert <rwe-sse at osnanet.de
> <mailto:rwe-sse at osnanet.de>>:
>
> Hm. I find it strange because when printing into a file, there
> should be no driver for a specific printer involved. But
> ".configure" perhaps is not resetting everything to default
> but leaves a few settings from the printer previously chosen.
>
> Regards
>
> Rolf
>
>
>
> Am 14.07.2018 um 23:46 schrieb Gianluigi:
>> It's not strange, if your printer is configured forgray scale
>> printing...
>> Leaving out configure, you get the default configuration.
>>
>> Regards
>> Gianluigi
>>
>> 2018-07-14 23:34 GMT+02:00 Rolf-Werner Eilert
>> <rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>>:
>>
>> I found something: When I leave out .Configure like you
>> did, and define everything including the PDF file, then
>> it prints colors.
>>
>> Strange though...
>>
>> Rolf
>>
>>
>>
>> Am 14.07.2018 um 23:01 schrieb Gianluigi:
>>> This code work to me.
>>>
>>> Public Sub Button1_Click()
>>>
>>> With Printer1
>>> 'If you insert configure you can see the printer
>>> configuration :-)
>>> '.Configure
>>> .Orientation = 0
>>> .Paper = 2
>>> .Resolution = Desktop.Resolution
>>> ' Output in tmp folder
>>> .OutputFile = "/tmp/print_test.pdf"
>>> .Print
>>> End With
>>>
>>> End
>>>
>>> Public Sub Printer1_Draw()
>>>
>>> Paint.FillRect(20, 30, 700, 1000, Color.Red)
>>>
>>> End
>>>
>>> Regards
>>> Gianluigi
>>>
>>> 2018-07-14 21:53 GMT+02:00 Rolf-Werner Eilert
>>> <rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>>:
>>>
>>> Currently I try to make up a simple printing into
>>> PDF for a program. It would be fine if I could print
>>> colored squares, but from a first trial I only got
>>> grays:
>>>
>>> Paint.FillRect(randLinks, randOben, 1000, 1000,
>>> Color.Red)
>>>
>>> Any hint what might go wrong? This is on my laptop,
>>> and the only printer driver installed is for a
>>> grayscale laser printer, but printing into a file
>>> (PDF) shouldn't be affected by this, should it?
>>>
>>> Thanks for your ideas!
>>>
>>> Rolf
>>>
>>>
>>>
>>> ----[ Gambas mailing-list is hosted by
>>> https://www.hostsharing.net ]----
>>>
>>>
>>>
>>>
>>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]----
>>
>>
>>
>> ----[ Gambas mailing-list is hosted by
>> https://www.hostsharing.net ]----
>>
>>
>>
>>
>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]----
>
>
>
> ----[ Gambas mailing-list is hosted by
> https://www.hostsharing.net ]----
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
> ]----
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180715/bf29f103/attachment.html>
More information about the User
mailing list