EOverflow when printing to network printer

  • Hello,

    I get an EOverflow exception when printing to a network printer (connected to another machine of my LAN).

    If I connect the same printer to my machine and print locally, everything works fine...

    Apparently, the exception occurs in unit Printers, at line :

    procedure TPrinter.EndDoc;
    begin
    CheckPrinting(True);
    EndPage(DC);
    here > if not Aborted then Windows.EndDoc(DC);

    Is there a problem with printing to network printers ?

    Thanks,
    Attila

  • I have the same problem on a customer's computer. They can print to a local printer with no problems, but get a floating point overflow exception when trying to print to a network printer (an HP). The problem seems to be in the ' DrvSplEndDoc' function in Imf32.dll.

    I saw references to similar errors with other Delphi packages as well. One suggested fix was simply to turn off floating point exception handling in your program using the following code (haven't had a chance to test it myself yet, though, as I have a while to go before my next release of code):

    uses
    SysUtils;

    Set8087CW($133F);