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

EPrintError

edited June 2004 in General
Hi,
Occasionally, I got the following error when trying to print some reports:

EPrintError.

Enviorment:

RB 7.03 (seems to happen with 7.04 too)
WinXP
HP LJ 1100 on Win2003 network server.

This happen on client site. I try to reproduce the same enviorment, but
cannot reproduce this error.

Any ideas?

Following is the application callstack.


Stack list, generated 6/22/2004 4:31:41 PM
[004D5E57] ppPrintr.TppCustomPrinter.GetDC + $83
[004D5F36] ppPrintr.TppCustomPrinter.GetDC + $162
[004D698A] ppPrintr.TppCustomPrinter.GetPixelsPerInch + $26
[004D69D7] ppPrintr.TppCustomPrinter.GetPixelsPerInch + $73
[004D3D57] ppPrintr.TppPrinterCanvas.UpdateDeviceContext + $13
[004D621D] ppPrintr.TppCustomPrinter.GetCanvas + $5D
[004D5AE1] ppPrintr.TppCustomPrinter.ResetDC + $75
[004D5AFB] ppPrintr.TppCustomPrinter.ResetDC + $8F
[004D58C0] ppPrintr.TppCustomPrinter.BeginDoc + $5C
[004D5925] ppPrintr.TppCustomPrinter.BeginDoc + $C1
[00402855] System.@FreeMem (Line 2477, "system.pas" + 10) + $0
[004E9E73] ppPrnDev.TppPrinterDevice.StartJob + $2B
[005748C2] ppDevice.TppPublisher.TakeDeviceAction + $CE
[00574914] ppDevice.TppPublisher.TakeDeviceAction + $120
[00574AB6] ppDevice.TppPublisher.StartJob + $6
[0056CE06] ppProd.TppProducer.InitializeReport + $52
[0050E8B3] ppReport.TppBandedReport.InitializeReport + $F
[0056CEA7] ppProd.TppProducer.PrintToDevices + $47
[0056CECA] ppProd.TppProducer.PrintToDevices + $6A
[0050FA31] ppReport.TppReport.PrintToDevices + $65
[0056DA76] ppProd.TppProducer.CancelDialogShowModalEvent + $2
[004E546E] ppForms.TppCustomCancelDialog.TimerEvent + $22
[00458347] ExtCtrls.TTimer.Timer (Line 1620, "ExtCtrls.pas" + 1) + $13
[004581B3] ExtCtrls.TTimer.WndProc (Line 1578, "ExtCtrls.pas" + 4) + $7
[00433C90] Classes.StdWndProc (Line 10563, "classes.pas" + 8) + $0
[00440E86] Contnrs.TObjectList.GetItem (Line 275, "Contnrs.pas" + 1) + $6
[004410D6] Contnrs.TComponentList.GetItems (Line 360, "Contnrs.pas" + 1) +
$6
[0073FB0E] AppEvnts.TCustomApplicationEvents.DoMessage (Line 212,
"appevnts.pas" + 1) + $16
[004920F0] Forms.TApplication.ProcessMessage (Line 6696, "Forms.pas" + 13) +
$4
[00492137] Forms.TApplication.HandleMessage (Line 6715, "Forms.pas" + 1) +
$6
[0048E0BC] Forms.TCustomForm.ShowModal (Line 4731, "Forms.pas" + 22) + $5
[004E5443] ppForms.TppCustomCancelDialog.ppShowModal + $1B
[0056D337] ppProd.TppProducer.PrintToPrinter + $363
[0056CD8D] ppProd.TppProducer.Print + $59
[0050EDAC] ppReport.TppReport.Print + $10


TIA,
Yovtcho S. Zagorov

Comments

  • edited June 2004
    Hi,

    This is not a known error with ReportBuilder. See if you can get the exact
    steps your client took to create this error and I will try to recreate it on
    my machine.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    Hi,

    Thanks for attention,
    At last, I found what is at the bottom of this issue...

    It seems that the windows network on client site is not configured properly
    (or sometimes works not as supposed). Anyway, there is a great chance that
    at the time of printing access to the target printer is denied. But...
    simple applications like Notepad handles this issue correctly showing an
    error message.

    Strange, but I still can't recreate this error on my machine... I try to
    deny access from my account to network printer, I try to logoff from domain
    and print... no luck, in all situations call to TppReport.Print gets
    finished without errors.

This discussion has been closed.