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

Length of the printer name

edited October 2006 in Devices
Hi,

Whenever I install a printer with a name that's 80 characters or longer I
can't create a report anymore.

When I (for example) just put a TppReport component on a form and try adding
a label to it (design time) I get an "Access Violation in module
rbRCL55.bpl". The problem is gone when the length of the printername is
reduced to a size under 80 characters.

I assume this problem is solved in future versions? (like RB 7?) And is
there a quick fix for this flaw under RB 5.56?

Thanks,

Mark Wittens
Syntess Software, the Netherlands

ps.
I'm using RB 5.56 in combination with Delphi 5 on a Windows XP machine.

Comments

  • edited October 2006

    The latest release - RB 10.04, supports printer names longer then 80
    characters. RB 10.04 includes support for D6, D7, D2005, and D2006.

    The last produced release for D5 is RB 7.04, but I think it contains the 80
    character limitation.

    Check out the GetDevNames method in ppPrintr.pas, its a simple fix.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2006
    I fixed the issue, in the GetSystemDefaultPrinterName the length of the
    default printer has a maximum of 80 characters as well (GetDevNames didn't
    need a change in my case since i don't code that uses it)

  • edited October 2006

    Good to hear you solved the issue.

    I think I remember now, that we modified that method and thought we had
    solved the problem. Then we had another customer report the issue again. I
    think there are two cases: the default printer case and and the non-default
    printer case.

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

    Best regards,

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