paint.end
Posted
#1
(In Topic #364)
Enthusiast

In the past it worked fine. I set the number of pages for the document in the begin method. The it called the draw as many times as there are pages. each time you end the page with a paint.end command. Problem is now this works for a single page no issue. It crashes on subsequent pages with the error "No current device" on the first command to try to use the paint object. Something has changed. What is the new method to end a page and start the next?
Posted
Enthusiast

Code (gambas)
- Printer2.Count = 3
- Printer2.Print
- Paint.DrawRichText("hello", 300, 300)
- Paint.DrawRichText("page # " & Printer2.page, 400, 600)
Posted
Enthusiast

You could simplify the answer for others by just saying to eliminate the paint.end command and it all works.
Looks like the paint.end command is no longer needed.
Thanks again for the help.
1 guest and 0 members have just viewed this.




