This is probably because of the size of your bitmap. What size are you
creating? For older systems (esp. 90/98/ME), and depending on graphics
cards, these sizes are rather limited.
A rule of thumb is to never create a bitmap larger than the screen size.
So what you can do is divide and conquer: if your page is too large, split
it into 2 halves, and print each halve. If the halves are still too big,
split these into halves, etcetera.
On second thoughts, it is weird though that this happens at the moment of
calling SaveToFile. I'd expect it to happen when calling SetSize, or at
least when using the handle through the Canvas property. But perhaps GDI
fumbles a bit with your system resources the moment the bitmap gets saved.
Maybe Peter Below can shed a light on this.
Hope that helps,
"Tarvirdi" < XXXX@XXXXX.COM > schreef in bericht