Home General

EOutOfResources with TppRichText Component

edited August 2001 in General
Hello,

here is a little application, which gives me an error on few printers. My
configuration is :
W98 SE, Delphi 4 SP3, RB 6.01, EPSON EPL5800L printer.

On NT workstation, when I click on Preview1 or Preview2, all works fine. On
W98 workstation,
I get EOutOfResources error.

But on NT or W98 workstation, when I click on Print, application runs
correctly.

Digital Metaphors support have talked to me to use others printer drivers
but my customer can change easy their drivers.

I think there is a bug, isn't it ?

My last tests was made with RB 5.56 and I'd errors. But not errors with RB
5.54 !!!

Please, give me THE solution !

Best regards,

Laurent VARES.

Comments

  • edited August 2001
    Please, do not post attachments to the newsgroup, however small it may be.
    Perhaps post a link to a website where the project can be downloaded
    instead- Thanks.

    It does sound like the printer driver for Win 98 needs to be upgraded. The
    bug would be in the printer driver, since it is different for each version
    of Windows. It works in NT driver, but not 98 driver. Can you download the
    latest driver from Epson or does their latest also give an eOutofResources
    error?

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    > It does sound like the printer driver for Win 98 needs to be upgraded.
    The
    the

    Jim:

    I didn't download the test, but it may not be a printer driver issue. There
    are a lot more resource limitations in Windows 9x machines then in NT/2k
    machines.

    Ed Dressel
    Team DM
  • edited August 2001
    Thank's for your response.

    However, I can say that to my customers !

    I said I had no error with oldest version of RB (5.54 for example). I think
    component use more resources than the oldest (with few printer driver but
    not with others) but I don't know why.

    My example runs correctly with HP Deskjet 930C driver but not with EPSON
    drivers and others.

    Please, try my little project !

    Best regards,

    Laurent VARES.
  • edited August 2001
    You're right Ed. I didn't see it until now, these lines cause Win98 to run
    out of memory for this report.

    ppReport1.DeviceType := dtPrinter;
    ppViewer1.Report := ppReport1;
    ppReport1.Print;

    Win 98 can't handle printing to the screen and to the printer at the same
    time. It raises an exception in the Delphi source. Comment out the viewer
    and it prints with no problem.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.