Print directly to printer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Print directly to printer

Ignatius Syofian
Hi, all

Can i have a sample of print directly to printer ?
My application need print directly to printed invoice directly, without
preview screen.

sorry to ask, cause i  new in gambas (about 2 month)
--
Regards,

Ignatius Syofian



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Print directly to printer

Pablo Vera
The printer acts as a drawing area, so you can do something like this:

----------------------------------------------------------------
   Draw.Begin(Printer)

   Draw.Font.Name = "Arial"
   Draw.Font.Size = 80
   Draw.Text("Hello World", X1, Y1) ' Prints text @ (X1,Y1)

   Printer.NewPage                  ' Begins a new page

   Draw.Image(Ticket, X2, Y2)       ' Draws an image @ (X2,Y2)

   Draw.End                         ' Sends document to printer
----------------------------------------------------------------

I hope this helps.

Saludos,
Pablo Vera

Ignatius Syofian wrote:
> Hi, all
>
> Can i have a sample of print directly to printer ?
> My application need print directly to printed invoice directly, without
> preview screen.
>
> sorry to ask, cause i  new in gambas (about 2 month)


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...