Hi All,
Another prob for anyone interested.
This is all on Mac dekstop. I have “mastered” printing to my printer using the graphics object. To do this I first
“Var g As Graphics”
Then
“Var settings As String
Var p As New PrinterSetup”
these are used to set various printer setting etc
and finally
g = OpenPrinterDialog
Now, the last one tells g that all the rest of the commands will go to the printer. I’m sure you all understand this. I don’t totally but, after a lot of experimenting I managed to get this to work and use it on several apps to print to my printer.
Now, the new problem is, I want to do the same but to a screen window and in a form that can scroll. I thought a canvas would be the way to do it - am I right?
If so, how do I tell the graphic object to “write” to that canvas?
I’ve looked through the docs and they mainly talk about placing a “picture” there and the example code put a copy of the button I press to intitiate the code into my canvas. I can place code into the “Paint” event of the Canvas and it works perfectly but that is static - ie it is the same every time. I thought this would be the way to go but if I try to access that event with Canvas.Paint I get the error that that event does not exist and, I’m not sure what I need to send there anyway.
Finally, and this is important, I looked at one of the example Apps and it gets VERY complicated with “extra” Objects where it appears the events and methods have been rewritten. That stuff is beyond my understanding as a hobbiest, so if that is the only way to go, please let me know up front and I’ll give up.
Anyway, sorry this is so long, is there a way to “print” to a canvas in the way you can print to a page in a printer?
As usual,
Thanks for any help.
Barry