Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Print RB reports under Citrix 'Canvas error'

edited December 2004 in Devices
Hello,

I use D3 with RB6.03, and under Citrix (not all time) i have an "Can't write
to canvas" error !
I know that this error is fix with the version 7, but i can't change.
How i can update, or change the RB code to fix this error?
Or does exist a solution with Citrix parameters?

Thanks in advance

Comments

  • edited December 2004

    A Canvas does not allow drawing error indicates that ReportBuilder cannot
    obtain valid printer device context (i.e. handle to a printer canvas).

    We do not have expertise here in working with Citrix. However, I would check
    the following.

    1. If only certain users accounts encounter the error, then I would check
    that all user accounts under which the applications are executing have
    full sucurity access rights to the printer driver.

    2. If the same user account intermitently encounters the error, then I would
    suspect a memory/resource leak in either the application or the printer
    driver. Try updating the printer driver to the latest available. And try
    running the application under a tool that can check for memory/resource
    leaks.




    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2004
    > 1. If only certain users accounts encounter the error, then I would check
    On one site (It's a big company) all the users encounters the error, at the
    first attempt to print and also the next attemps.
    On an another site they have 2 Citrix/NFuse servers, anf when a user
    encounter the error, he have the error even if it change the Citrix server
    that he use, and some day he does'nt have the error.

    would
    Printers drivers are uptodate.

    But the main goal are that i report some change in the code source of the RB
    6.3 with corrections in the RB 7.2 and in preview the error are resolve. I
    search to correct the error in printing now but it is very difficult,
    because i don't have source code of the unit raCodMod.pas for example and
    Delphi tell that the unit blabla seem to be compiled with a different
    version of raCodMod...
  • edited December 2004

    OK, sorry I think I misunderstood the post. If you have tested using RB 7
    and it works, then I would update to RB 7.

    The units prefixed with 'ra' are related to RAP, they have nothing to do
    with printing. You can modify the implementation section of any of the other
    source units. Do not modify the interface section or you will get compile
    errors such as you describe.

    If you want compare the source code of one version to another, then perhaps
    try using versioning software that can perform source code comparisons.



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.