Home Subreports

spacing issues on subreports

edited July 2005 in Subreports
Hi

I can't seem to figure out why a subreport is printing the controls where it
is. I am printing to a reciept printer and using the generic/text only
driver. Because of this I have selected 'custom' as the paper name and set
paper width to '76' mm (that is the actual width of the paper), with margin
left and margin right set to zero. These are the settings for the main
report and the subreport. The main report prints fine, with all the
controls (more or less) where I have placed them. The subreport seems to
scale the controls down. ie a control wide enough to hold 40 characters
gets cut off at 30 chars with lots of room still to print. Also I have
calculated the position of some of the controls so that they are at the very
right-most edge of the printable area (on both the main report and
subreport) but the subreport shifts them to the left.

for example:

Item Name Would Go Here..........$100.00

Item Name Would 00.00
(width and left of the Item Name fields are the same, as are the Amount
fields)

I have set the paper width of the subreport to greater than 76 and that
seems to shift the controls back to the right but that doesnt seem like a
proper way to format the subreport.

Also, does the report automatically take into consideration the printers
non-printable area? I ask because I have several controls with their 'left'
set to zero and margin left or the report is set to zero too. Shouldnt that
be cutting off the first few characters? Could that have anything to do
with the subreport problem I have mentioned?

Thanks
Shane

Comments

  • edited July 2005
    Hi Shane,

    1. Be sure the subreport's ParentWidth property is set to True. This will
    ensure that it prints the entire width of the page defined in the main
    report. Which type of subreport are you using? (i.e. Child, Fixed, or
    Section).

    2. ReportBuilder does not take the un-printable area into account. You
    will need to set your margins accordingly. Most printers need at least a
    .25 inch minimum margin in order to remain in the printable area. Trying to
    print in the unprintable area could cause a number of issues including
    missing report components and report components that are cut off.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.