What would cause the EInvalidOperation error message "Canvas does not allow drawing." on Windows XP Professional. I am logged in as an Administrator and running just a preview of a report.
The reports run fine on WinNt and Win2000 from same executable. Interestingly, I ran a simple States report, it ran fine, ran another report, got the "Canvas does not allow drawing." message, ran the States report again, got the "Canvas" message, ran an archived report several times fine. Bizarre, but hey its WinXp, another fine Microsoft product.
What is your installed default printer driver? I'm sure you know this, but for other readers, RB uses the printer driver to determine the pagination of a report, for the screen preview. We'll download the driver here and run with it on our XP Pro machine. It's probably another fine example of how to write a printer driver that supports the API calls that M$ apps use...and not necessarily all of the API calls that a Windows application could make to the printer:)
Comments
The reports run fine on WinNt and Win2000 from same executable.
Interestingly, I ran a simple States report, it ran fine, ran another
report, got the "Canvas does not allow drawing." message, ran the States
report again, got the "Canvas" message, ran an archived report several times
fine. Bizarre, but hey its WinXp, another fine Microsoft product.
Delphi5, ReportBuilder 6.03, WinXp Professional
for other readers, RB uses the printer driver to determine the pagination of
a report, for the screen preview. We'll download the driver here and run
with it on our XP Pro machine. It's probably another fine example of how to
write a printer driver that supports the API calls that M$ apps use...and
not necessarily all of the API calls that a Windows application could make
to the printer:)
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com