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

  • gpigpi Volnovakha, Ukraine

    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

  • gpigpi Volnovakha, Ukraine

    Attach your report template (fr3)

  • Hello Volnovakha,

    Thank you for your monitoring.

    Here is the mask in attachment,

    Best Regards


  • gpigpi Volnovakha, Ukraine

    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.