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

Pb printing to samsung printer very slow

edited September 2010 in Devices
Hi!
I'm using report builder 12.02 build 279 and delphi 2010.
When I preview my report or when I export it to pdf or other file
formats it works fine and fast.
Unfortunately, when I try to print my report directly to my Samsung
printer it takes a lot of time (around 1 minute before the printers
reacts, with a printing message dialog on my screen with a cancel
button...)(The printer is: Samsung CLX-2160 / drivers SamsungCLX-216x
series version 3.04.72:05)
However, when I print to another printer (epson stylus photo) I have no
problem, it is fast.
I've also exported a pdf and printed it using acrobat reader, and it is
fast too.
The speed problem appears only when I print a report directly from my
program using reportbuilder to this samsung printer.

Any idea?
Thanks

Comments

  • edited September 2010
    Hi Iguillau,

    This is not a known issue. Does this behavior only occur on one machine or
    are you able to recreate it on multiple? Are you certain you have the
    latest driver installed for this printer? Is this a network printer?

    While the printing process seems to be "hung", try tracing into the RBuilder
    source and see if you can pinpoint where the slowdown is occuring.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2010
    Dear Nico,

    Thanks for your quick answer.
    To answer to your question:
    . This behavior occurs on all the machines (not only mine)
    . The drivers are ok.
    . This is a network printer.
    The time to print the same page is between 28s and 80s (from the time I
    press the print button to the time when the process window disappear
    from the screen.
    I've tested also the print with the same printer but locally connected.
    It is a little better but still slow. (20s)

    One important thing: the problem occurs only when I try to print a page
    with a metafile in it. If I print only text, it is fast.

    I've looked deeply in the RB code and the software hangs on
    "Windows.EndPage(FDC);" ppPrintr.pas L3509

    I was using rave reports before and it was really full of bug so I
    decided to switch to RB. The bug I had with rave are now resolved with
    RB but this problem of slow print of pages (with metafile) was not
    existing with Rave.... only with RB.

    Do you have any idea?

    Best regards
    Laurent


  • edited September 2010
    I've just created a small test application to reproduce the problem.
    The metafile I have to create has this range (width: 0 to 4760; height:
    0 to 6814). This is an important range but I need that because I have to
    draw some polylines and curves with accuracy.
    In my sample application, I just draw a line and an ellipse.
    It takes 20s on the samsung and it is immediate on a stylus photo 900.
    (It takes less time if the metafile size is smaller)

    If this can help...

    Best regards
    Laurent
    PS : Nico, I send you the test application by email.


  • edited September 2010
    Hi Laurent,

    Thanks, I received your example and will research the issue and get back to
    via email as soon as possible.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2010
    Hi all,
    Thanks to Nico,
    Setting the directDraw flag of my image components to true solved my
    problem. Now the printing process is really fast.

    Laurent

This discussion has been closed.