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

I cant't print Envelope DL 230x110 mm in orizontal mode ...

edited January 2002 in General
I want to print envelope (Busta DL 110 x 230 mm)
on HP Deskjet 840c. To print I must use the Landscape style (orizontal
print)
but the preview loop creating an infinite number of page with
a recorset of at last ONE record. At least the report don't prewieng
nothing.
If i use the vertical mode (portrait) the report print but isn't the correct
orientation for the printer hp 840?
Any suggest ? thanks in advance

Gaetano Scandale
Tecnosens srl
Brescia - Italy
gscandale@tiscali.it

Comments

  • edited January 2002
    Is the detail band static height? Most likely you have a static height
    control in the detail band that can't fit on the page. Try reducing the
    height of components in the report until it doesn't infinite loop. There is
    an article which describes how a report can be configured to print infinite
    pages, in the tech-tips newsgroup under the general thread.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    I solve the proble of infinite page, moving controls from
    detail band to title band. It's the only way IMHO.
    Have you other solution to print more then one envelope ?

    Thanks



  • edited January 2002
    You should be able to place the controls in the detailband. If you have one
    record to print, set the Detailband.BandsPerRecord property to the number of
    detail bands that you want to print.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002

  • edited January 2002
    I thought if the page setup is defined to be large enough for one envelope
    only? Then you can print one envelope per page. Since only one detail band
    will fit on a page, you'll be able to print multiple envelopes for one data
    record, by using the BandsPerRecord. Once the record moves to the next, you
    can change the BandsPerRecord in the Detailband.BeforePrint event.

    Use a counter TppVariable. I explored this appraoch in code, and placed an
    invisible integer type TppVariable in the detail band. In the variable's
    OnCalc event, I set the value to how many detail band copies I want to
    print, for the current record. The OnCalc event should fire on the traversal
    change of the dataset. In the detail band BeforePrint, you should be able
    to grab the counter value from the variable, and set the BandsPerRecord. I
    think this is what you are looking for- one page is an envelope, and one
    detail band per envelope will print, as many copies of the record, each on a
    new envelope. Is this it?


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.