Random "Canvas does not allow drawing" error
Hello
Most of the time, i use to print with a mask made with FastReport6 without any problem.
Sometimes, one exception is returned with an error
Canvas does not allow drawing.
Note that execution of FastReport is made within an RDP session on a RDS / TSE server.
All notes I read on such error on this forum are related to many possible causes
- rights R/W missing on c:\temp (checked, this is not the cause)
- included pictures (checked, even without picture inside mask , error is reported)
- font missing : I assume Arial shall be found on TSE serveur
- default printer in RDP session shall be set and dshall not be a FAX
If anyone has another topic to check, it will be welcome as it is tricky to find what is wrong
BR, Benoit
Comments
If you are use TfrxRichView - set TfrxRichView.Wysiwyg to false. Check printer's settings. It seems FR can't to access printer's canvas
Hello Volnovakha
Thank you for your post, I am going to test your recommendation and will update you soon after results (today hopefully).
Best Regards
Dear Volnovakha,
I modified property Wysiwyg to false for all MEMO fields.
Error "Canvas does not allow drawing" still remains.
Note that FastReport version is 6.5.8
Regards
Attach your report template (fr3)
Hello Volnovakha,
Thank you for your monitoring.
Here is the mask in attachment,
Best Regards
What result do you get if use report without barcode?
Hello Volnovakha,
It is not possible to remove barcode as it is a must to have it.
FastReport is called within a session windows, running a windows exe
Current hypothesis is that the printer is not always known in each windows session.
Benoit
Do you have any solution? I sometime obtain this error in applications running on Azure terminal services. Pavel
https://forum.fast-report.com/en/discussion/2929/how-do-i-fix-quot-canvas-does-not-allow-drawing-quot
You must have some default printer.