Drawingarea print

Post

Posted
Rating:
#1 (In Topic #615)
Regular
bill-lancaster is in the usergroup ‘Regular’
 This may be a bit obvouse but is there a simple way of printing a drawing area?
Thanks
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
You can't just print what's on the screen, you will need to Paint the details to the Printer. Have a look at the attached that draws in a DrawingArea and then to the printer. Note the differences in the routines. It should print your name on an A4 sheet.

<IMG src="https://www.cogier.com/gambas/BillL.png"> </IMG>

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
bill-lancaster is in the usergroup ‘Regular’
 Thanks Cogier,  I was in too much of a rush and should have been more explicit.
So I draw a lot of detail in  drawing area using the draw_event.  Then draw the identical details in the print_event in order to print it.
It seems a bit inelegant.  It there one process that will perform both operations?
Online now: No Back to the top
1 guest and 0 members have just viewed this.