Home General

Page Size Problem ?

edited July 2001 in General
I will try to explain the problem and hope there is a solution.

Using D5, RB Net 5.6, Win 2K.

On my development machine I am using a HP LJ 1100. The default paper sizes
does not include one named 'A4' and so I choose the 210 x 297 mm paper size.

When I deploy my application many of the users use portable Canon bubblejets
with their default paper size set to A4. When I send my reports to print on
their machines using default setting the page size resets to custom and
procedes to print many hundreds of pages depending on what their 'Custom
Page' is set to. Is there any way to force reports top print on the
required size of paper whatever printer is being used ?

Hope this makes sense

Comments

  • edited July 2001
    Hi,

    reset the settings before calling the print method.

    if UpperCase(ppReport.PaperName) = 'CUSTOM' then
    ppReport.PrinterSetup.PaperHeight:= 210;
    the same for the PaperWith.

    enjoy,
    Ron.

  • edited July 2001


    This exact same problem has caused me much embarressment as well. I think it
    is something that RB should address, as not everyone lives in the US and
    talks in inches, and not all printer drivers are born the same.

    RB should default the paper size to that set in the printer settings unless
    overridden. If the paper size was saved as 'A4', and it does not have an
    identical match, then RB should set the paper height and width to the
    correct dimensions for the original selected paper size. It is absolutely
    rediculous that just because my system has an A4 papersize, and the next
    computer does not that RB should spin off into infinity generating
    non-existant pages.

    While I am on the subject, RB generates infinite pages simply because a
    detailband height was larger than the current paper height. Surely such a
    condition could be trapped (ie Have I just produced 100 pages with no
    content?), and the user notified that the report will not fit on the paper.

    Back to the subject of units, how about retrieving the units from control
    panel settings, or if that is too difficult, at least store a default in the
    registry, and while you are at it, store the default paper size too.



    Martin Clarke
  • edited July 2001
    Thanks,

    that solved the problem - It was driving me NUTS !!!!

This discussion has been closed.