Length of the printer name
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.
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.
This discussion has been closed.
Comments
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
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)
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