Home General

Problem changing printer

edited December 2010 in General
I'm facing the following problem:

- User has a label printer marked as the default printer on windows
- My application has ppReport.printersetup configured to A4 paper size
(note that label printer doesnt support this size)
- When the report is previewed on the screen, everything looks fine
- User click the print button, and change the printer to a laser
printer, in the printer setup dialog, and print the report

The problem is that the printed result is "cut" at the width of a label
:( Ie: 40% of the report is not printed, like if the A4 had the width of
a label.

Seems that RB, for some reason, is not carring the paper size defined in
the report.

Any idea?

Carlos

Comments

  • edited December 2010
    Excuse me for using "Digital Metaphors" as the sender of my last
    message. I did a fresh install of Thunderbird and didn't noticed it used
    the server name as the default sender name.

    Carlos
  • edited December 2010
    Hi Carlos,

    No problem, thanks for updating your name.

    Which version of ReportBuilder and Delphi are you currently using? Where
    are you changing the paper properties in your application? If you manually
    load a report and change the paper name and printer name at design-time, are
    you able to print properly?



    Regards,

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

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2010
    Em 02/12/2010 12:36, Nico Cizik (Digital Metaphors) escreveu:

    I'm using RB 10.09 with Delphi 2007. In this case, I wasn't changing the
    paper properties in runtime, and wasn't loading any report template too.
    It was simple report... just dropped a TppReport to a form, and built
    the report as I wanted. TppReport.PrinterSetup config was the "default"
    one, just with the margin values changed (in designtime).

    The workaround I found was to set the laser printer as the default
    printer on windows, but this is not a solution.

    The problem happened in one of my customers machines.

    Carlos
  • edited December 2010
    Hi Carlos,

    Where are you changing the paper properties in your application? (Which
    event).

    If you manually change the paper name and printer name at design-time, are
    you able to print properly?


    Regards,

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

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2010
    Em 03/12/2010 14:24, Nico Cizik (Digital Metaphors) escreveu:

    Not in this case.


    Testing this will be a bit difficult, since I'll need to have access to
    customer machine. I'll let you know when I'm able to do this.

    []s
    Carlos
This discussion has been closed.