Re: [Gambas-user] R: Can't print in Gambas 3 [solved]

2012-05-17 Thread Benoît Minisini
Le 17/05/2012 10:36, Ru Vuott a écrit : > >> No. You must specify the event name if you want to catch the >> events >> raised by the Printer object. >> >> -- >> Benoît Minisini >> > > ...Oh, yes, Benoît. I forgot that it's an "object" ! > > Well, so: > > > > Private mijnprinter As New Printer

Re: [Gambas-user] R: Can't print in Gambas 3 [solved]

2012-05-17 Thread Ru Vuott
> No. You must specify the event name if you want to catch the > events > raised by the Printer object. > > -- > Benoît Minisini > ...Oh, yes, Benoît. I forgot that it's an "object" ! Well, so: Private mijnprinter As New Printer Public Sub Form_Open() Object.Attach(mijnprinter, Me

Re: [Gambas-user] R: Can't print in Gambas 3 [solved]

2012-05-16 Thread Benoît Minisini
Le 16/05/2012 23:36, Ru Vuott a écrit : > Ok, Johny, > > but the mistery is: why " Private mijnprinter As New Printer " doesn't work ? > > ...a bug, maybe ? > > > No. You must specify the event name if you want to catch the events raised by the Printer object. -- Benoît Minisini -

Re: [Gambas-user] R: Can't print in Gambas 3 [solved]

2012-05-16 Thread Ru Vuott
Ok, Johny, but the mistery is: why " Private mijnprinter As New Printer " doesn't work ? ...a bug, maybe ? --- Mer 16/5/12, Johny Provoost ha scritto: > Da: Johny Provoost > Oggetto: Re: [Gambas-user] R: Can't print in Gambas 3 [solved] > A: &

Re: [Gambas-user] R: Can't print in Gambas 3 [solved]

2012-05-16 Thread Johny Provoost
Hey man, that simple? Thanks now I can getting further. Going to sleep well now, Thanks Johny Op 16-05-12 23:13, Ru Vuott schreef: > Uhmmm > > but... I do not used: > > > Private mijnprinter As New Printer > > > but I put on form a Printer-object ! > > > > Well, now I tried to use: Private mijn

Re: [Gambas-user] R: Can't print in Gambas 3

2012-05-16 Thread Ru Vuott
Uhmmm but... I do not used: Private mijnprinter As New Printer but I put on form a Printer-object ! Well, now I tried to use: Private mijnprinter As New Printer and I eliminted the Printer object from my Form and the page was empty !!! So, you have to put in your Form program the Print

Re: [Gambas-user] R: Can't print in Gambas 3

2012-05-16 Thread Johny Provoost
Still empty page (or empty pdf). If I run the program line by line it seems not going to the sub mijnprinter_Draw. After the 'mijnprinter.Print' it prints an empty page and ends. It was much simpler in Gambas2. It's the only thing (the printing part) that's not working after porting my program

Re: [Gambas-user] R: Can't print in Gambas 3

2012-05-16 Thread Ru Vuott
> Error is gone, but still got a empty > page. Uhmm strange Try: Public Sub Button1_Click() If mijnprinter.Configure() = True Then Return mijnprinter.FirstPage = 0 mijnprinter.Orientation = 1 mijnprinter.Paper = 2 mijnprinter.Print End Public Sub mijnprint

Re: [Gambas-user] R: Can't print in Gambas 3

2012-05-16 Thread Johny Provoost
Error is gone, but still got a empty page. Johny Op 16-05-12 20:53, Ru Vuott schreef: > Public Sub Button1_Click() >If mijnprinter.Configure() = True Then Return >mijnprinter.FirstPage = 0 >mijnprinter.Orientation = 1 >mijnprinter.Paper = 2 >mijnprinter.Pri

[Gambas-user] R: Can't print in Gambas 3

2012-05-16 Thread Ru Vuott
Public Sub Button1_Click() If mijnprinter.Configure() = True Then Return mijnprinter.FirstPage = 0 mijnprinter.Orientation = 1 mijnprinter.Paper = 2 mijnprinter.Print End Public Sub mijnprinter_Draw() Paint.DrawText("TEST TEST") Paint.End End --- Mer 1