[Gambas-user] Difference between Printer1.Count and Printer1.NumCopies

Rolf-Werner Eilert eilert-sprachen at ...221...
Wed Nov 21 16:02:05 CET 2012



Am 21.11.2012 14:17, schrieb Benoît Minisini:
> Le 21/11/2012 13:37, Ru Vuott a écrit :
>> Hello,
>>
>> I'ld like to know the difference between "Printer1.Count" and "Printer1.NumCopies".
>>
>> The problem:
>>
>
> 'NumCopies' is the number of times the printer driver will repeat the
> print. This is low-level.
>
> 'Count' is a property that you have to fill to tell how many pages there
> is in one copy.
>
>> I have to create a two-page PDF document, each with a different image and text content.
>>
>> How I can create (if that's possible...) -- via Printer.OutputFile = "my_file.pdf" -- a PDF document with multiple pages contaning different contents?
>>
>> Thanks
>> vuott
>>
>
> Look at a printing example. You have to set the Count property to your
> number of pages in the Begin event, and then print each page inside the
> Draw event.
>
> Regards,
>

And you should add, you don't need to switch to page 2 when page 1 is 
ready, but when you end your printing of page 1, this will be at the end 
of the Draw event: it leaves the Draw event, and then the Draw event is 
called a second time automagically. So, for each page, all the 
organization to cover the different pages has to be made in Draw.

Regards

Rolf




More information about the User mailing list