[Gambas-user] languages

Dag Jarle Nerland Johansen dag at ...3591...
Thu Mar 31 19:11:58 CEST 2016


hello again

i hope last time
as i can see now, it sould be a html-file
but why do i have to write out my data in html-format for a simple print?

kind regards
Dag

Am 31.03.2016 um 18:30 schrieb Benoît Minisini:
> Le 31/03/2016 18:19, Dag Jarle Nerland Johansen a écrit :
>> hello Benoit
>>
>> it is a big pity that people are using very much their native languages
>> in the forums. if i try to get simple examples (and i mean simple), the
>> are mostly in french or spanish, so i cannot understand the
>> explanations. f.exs. the printer example goes over my horizon, perhaps i
>> get silly on my old days. the same for report. i just want to print a
>> pure textfile, and have no chanse zo achive that with the samples on the
>> softwarefarm. i struggled now since 2 days and give it up.
>>
>> sorry to say, the structures are not to overlook for me, where to find
>> what.
>> i am and old-fashioned line-by-line programmer, understand of course
>> event-programming. but many of the properties are explained so poor -
>> the say nothing at all. many times only one line, where are useful
>> examples? not page by page, only one simple example to describe the
>> function. not everyone is, like you, capebal to write an compiler.
>> feeling lost.
>>
>> kind regards
>> Dag
>>
>
> The "Printing" example project is in english, but it has no comment 
> inside. Does it help you anyway? What don't you understand?
>
> In Gambas 3 (copying the way GTK+ and QT actually work), the Printer 
> is an object that raise an event before printing ('Begin' event), one 
> for each page that must be printed ('Draw' event) and an event when 
> everything is finished ('End' event).
>
> But it can't know how many pages to print by itself, so you have to 
> tell it in the 'Count' property during the 'Begin' event.
>
> Then, if you event a clean text print, it's no so simple, as you have 
> to layout your text carefully before printing to know how many pages 
> you have to print.
>
> Finally, actually starting all that process is done by calling the 
> 'Print' method on the Printer object.
>
> To see what I mean, just run the 'Printing' example step by step using 
> the debugger.
>
> Regards,
>





More information about the User mailing list