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
> 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
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
-
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: &
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
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
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
> 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
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
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
10 matches
Mail list logo