RB 6.03 Canvas Does Not Allow Drawing
Hello All:
In terminal services, I get regular errors "canvas does not allow
drawing" using Reportbuilder 6.03 with Delphi 5 - per the rbWiki - this can
be caused when the older version of ReportBuilder try to access the printer
canvas.
I am guessing that maybe I am feeding an invalid printer name to
reportbuilder (and occassionally the printer driver may not be available).
I will be switching to RB12.x very soon - already bought it - until then
I have a few questions:
1) Is there a way that I can test if the printer name I am feeding to
ReportBuilder is valid - ie that I can get to its printer handle ???
2) Also - is there a way for me to enumerate thru the printers to find
one with a valid handle ???
Thank you.
Neil Huhta
Profit Monster Data Systems LLC
In terminal services, I get regular errors "canvas does not allow
drawing" using Reportbuilder 6.03 with Delphi 5 - per the rbWiki - this can
be caused when the older version of ReportBuilder try to access the printer
canvas.
I am guessing that maybe I am feeding an invalid printer name to
reportbuilder (and occassionally the printer driver may not be available).
I will be switching to RB12.x very soon - already bought it - until then
I have a few questions:
1) Is there a way that I can test if the printer name I am feeding to
ReportBuilder is valid - ie that I can get to its printer handle ???
2) Also - is there a way for me to enumerate thru the printers to find
one with a valid handle ???
Thank you.
Neil Huhta
Profit Monster Data Systems LLC
This discussion has been closed.
Comments
Try a simple test using your Delphi 5 / RB 6.05 to determine whether that is
the case.
Report.PrinterSetup.PrinterNames will return the list of installed printers.
You might be getting the error in the case in which there are no printers
installed for Windows user account under which the app is executing.
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com