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

Error printing to Oki printer

edited August 2004 in General
We just got a new Oki 5400 dn printer. We have installed both the PCL and
PostScript drivers on XP. Whenever a ReportBuilder report with a rectangle
is printed, I get an "Invalid floating point operation" error. Printing to
an HP or other printer doesn't have a problem. Sometimes I actually get a
whole page, but the next stops at the rectangle area. The printer is a
colour printer, but the PCL is defaulted to greyscale so doesn't do any
colour printing. I'm using RB 7.04.

Any clues or suggestions welcome. I just tried our shipping app, and the
text-only report printed fine. Then I added a simple rectangle, printed,
and the app just disappeared! What should I look for/breakpoint to fix
this?

/Matthew Jones/

Call stack:

TCanvas.Rectangle(263,2533,4162,3714)
TppPrinterDevice.DrawShape($1E6EDD4)
TppPrinterDevice.Draw($1E6EDD4)
TppDrawCommand.Draw($1E635B0)
TppDevice.DrawPage($1804DF8)
TppPrinterDevice.ReceivePage($1804DF8)
TppPublisher.TakeDeviceAction(ppdvReceivePage,$1804DF8,'')
TppPublisher.ReceivePage($1804DF8)
TppReport.PageSent($1804BA8)
TppCustomEngine.DoOnPageSent
TppEngine.SendPage
TppEngine.FinishPage
TppEngine.GeneratePage(4,0)
TppEngine.RestorePage
TppEngine.Generate
TppEngine.RequestPage($1804928)
TppReport.RequestPage($1804848,$1804928)
TppPublisher.DoOnPageRequest
TppPublisher.Publish
TppProducer.PublishReport
TppProducer.PrintToDevices
TppReport.PrintToDevices
TppProducer.CancelDialogShowModalEvent($1E6B4B0)
TppCustomCancelDialog.TimerEvent($1E6D418)
TTimer.Timer
TTimer.WndProc((275, 1, 0, 0, 1, 0, 0, 0, 0, 0))
StdWndProc(264748,275,1,0)
TApplication.HandleMessage
TCustomForm.ShowModal
TppCustomCancelDialog.ppShowModal
TppProducer.PrintToPrinter
TppProducer.Print
TppReport.Print

Comments

  • edited August 2004
    Just to be sure, it also fails when I print from the supplied demo
    project. I'd also add a link to the Oki drivers for you to test with, but
    it is a fancy menu system on the web page.

    /Matthew Jones/
  • edited August 2004
    Hi Matthew,

    I downloaded the Oki 5400dn driver and was able to recreate the AV you are
    seeing. However if you trace into the ReportBuilder source on the AV and
    then into the Delphi source (by adding ($Delphi)\Lib\Debug\ into your
    library path), you will see that the AV occurs when the call is made to the
    Windows Rectangle method. The handle must be valid since the command works
    correctly with other printer drivers. This leads me to believe that there
    is an issue with this printer driver. You may try contacting the Oki people
    and see if they have heard of this issue.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    Many thanks. I wondered if it might be some resolution thing, but it
    you've stepped around it that is enough to convince me it is a driver bug.
    Maybe I'll send them a sample that fails. I'll maybe see if a PDF of the
    report would fail, as that would probably get their attention. Thanks
    again.

    /Matthew Jones/
  • edited August 2004
    In case anyone else finds this error, it turns out the Oki PCL driver has
    a "reduce spool file size" option in the job control advanced options.
    Turning it off makes it work properly with ReportBuilder and Acrobat, so
    it is solvable in the existing driver.

    /Matthew Jones/
  • edited August 2004
    Hi Matthew,

    Thanks for the info. I'm sure this will be helpful for anyone else using an
    Oki printer.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.