[Gambas-user] Printing
Rob
sourceforge-raindog2 at ...94...
Thu May 22 05:12:57 CEST 2003
On Wednesday 21 May 2003 17:44, Benoit Minisini wrote:
> > Also, is there a way to grab the entire Form client area
> > (Or the entire window for that matter) and print it?
> No way at the moment.
Well, there's actually no way to do that in VB either except as a very low
resolution screenshot type of thing. The solution I came up with was to
write a set of functions that wrapped the various graphics primitives I
needed (as well as some extra text formatting functions since I was writing a
report generator) and wrote them to the screen, printer or both devices
depending on your settings. I think that's a more reasonable approach than
making Gambas track everything you've done to the Form client area. Though
if someone with too much time on their hands wanted to write a Display
Postscript canvas I'd give that a try too ;)
Then again if all you want is a printscreen type of thing, all you need is to
call an external screen grabbing program. Maybe the Gambas KDE automation
stuff could be extended to control KSnapshot for example, or maybe there's a
way to get the X11 handle of the window you're controlling and use some more
traditional X capture utility.
Rob
More information about the User
mailing list