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

Margins for mailing labels

edited September 2002 in General
I'm working on a report that's going to be used as a catalog, so I need the
pages to be printed using two different margin settings. The report is using
three columns, a page header, a page footer and a page style band.
My problem right now is that setting the margins while printing effects all
bands except the detail band. The detail band stays in the same position
regardless of the new margin setting.

Tried to move the contents of the detail section to reflect the margin
settings and it worked on preview, but printing or jumping to first or last
page didn't work by some reason.

Does anybody know what to do?

Thanks,
Lars.

Comments

  • edited September 2002
    Changing the margins is not supported. What do you want the detail band to
    do exactly? You can try setting the DetailBand.PrintPosition property to
    have it print where you want it to on the page.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Have you considered putting your mailing label lines inside a region, then
    moving the region within the detail band? Additionally, you could control
    placement via the ColumnPosition property.

  • edited September 2002
    I want my report to have different margins depending on page number, odd
    pages need to have a larger margin on left side and even pages the larger
    margin on right side.

    Tried PrintPosition but that's just effecting the top position on the first
    detailband, not the left/right margins.

    Guess I might have to define double sets of print objects, one for left side
    large margin and one for right side large margin and just show one set at
    the time depending on odd/even pages.

    Thanks anyway,
    Lars.

  • edited September 2002
    Good ideas. Another approach may be to generate separate subreports, since
    subreports can have different printer setups than the main report.
    Subreport.ParentPrinterSetup property. This way you can print two
    subreports each with different printer setups. One for odd pages and one for
    even pages. If that still doesn't work for you data, you can print the
    entire subreports, first all the even pages, then all the odd pages. You'll
    have to do this to a page cache. Then take the pages from teh cache and
    reorder them so that you pull one page from teh first subreport then one
    page from the second subreport so that you can merge the two subreports back
    together for a real device. Here is a technique which does this in order to
    create a booklet.

    http://www.digital-metaphors.com/tips/Booklet.zip


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Yes, I'm doing it that way. I realize now that I have to move everything
    manually, even the stuff on the page style band.

    Thanks,
    Lars.

  • edited September 2002
    I was having subreports as the next thing to try, but now, when I abandon
    the thought of using margins to change positions and moved everything
    manually, it works.

    Thanks,
    Lars.

This discussion has been closed.