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

Printing Problem

edited October 2003 in General
I have a program to print invoice, when I print a invoice I get this
printing error "There was an error writing to LPT1: for the printer (my
printer name) There was a problem printing to the printer due to an unknown
system error. Restart windows". This error occurs after I upgraded my
application from Delphi5+RB5.0 to Delphi7+RB7.03 and it also occurs if I run
my application in a PC with Win98 OS, there is no problem if run in a PC
with Win2000 OS. The printer that hook to these 2 PCs is different brand.
My program has no change after the upgrade and my application is compiled in
PC running Win2000. I am totally lost in this. What should I look into to
solve the problem? Thanks in advance.

Comments

  • edited October 2003
    Hello,

    As a test try hooking a different printer to your Windows 98 machine and see
    if the problem persists. If it doesn't the issue is probably with the
    Printer driver. Check to see if there is an updated driver from the
    manufacture. If the problem persists with the new printer, please let us
    know the exact printer you are using so we can test on our Win 98 machine.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    The problem is the printing error only occurs after I upgraded my
    application to Delphi7 & RB7 (without changing the program code). Same
    PC, same OS, same printer, only the application is upgraded... so I guess
    the problem should be the D7 or RB7... may be some compatible issue with
    Kyocera printer + Win98.

    Tested with the following senario:
    1) Preview the document and send to printer by using the printer button in
    preview form,
    PC running on Win98 (2nd Edition) + Kyocera FS680 -> Ok
    2) PC running on Win2000 + HP LaserJet 5P -> Ok
    3) PC running on Win2000 + HP LaserJet 1220C -> Ok
    4) PC running on Win98 (2nd Edition) + Kyocera FS680 -> Error
    5) PC running on Win98 (2nd Edition) + HP LaserJet 1200 -> Ok

    Anyway, I will try to find out if there is any driver update for Kyocera
    printer. Thanks.


  • edited October 2003
    The printing problem is solved after I dropped a new TppReport component on
    my form, and duplicated all the report format into it, then delete the old
    TppReport component. I am still using the same printer driver. I still can
    not figure out what is wrong because I set the properties value of both
    TppReport exactly same, the only difference is old one was created by RB5.

This discussion has been closed.