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

Customised Mail Label Printing.

edited July 2003 in General
Requirement is the user wants to print the same message in required no of
labels in a customised label page setup etc. Actually there will be a set of
pplabels one below the other in the DetailBand, other than that the user
enters the information such as PageSize, Label Height, Label Width, No.of
labels across, Row gap, Column Gap etc. The report does not have a
DataPipeline, its a basic report with a few ppLabels and values are assigned
at run time.

I have done most part of it. But have problems with PageLimit and
DetailBand.PrintCount
Say a page can acomodate 16 labels and the user wants only 20 labels
printed.
Then DetailBand.PrintCount := 20
DetailBand.ColumnTraversal := ctLeftToRight;

Now, I say PageLimit = 0 then it prints unlimited pages, then I figured out
means of calculating the no of pages required and then to the above users
requirement u need pages but only 4 pages has to be printed on the second
page but it prints whole of the second page, why ? say if the no.of.labels
within the first page it prints perfectly, i.e.; 5 labels is required then
only 5 are printed and the rest are left. Thats fine , and the problem is
with the second page onwards.

If there are any sample codes for any problem of this nature will be a Great
Help. Thanks in Advance.

Comments

  • edited July 2003
    Hello,

    I would suggest using a JIT Pipeline to pull the data from your dataset so
    you will be able to control the exact amount of records that get traversed.
    Also, you will want to check the DetailBand.BandsPerRecord property. This
    property indicates the number of times the detail band will print for the
    current record. Setting this will allow you to limit the number of labels
    you print to the page.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    There is no dataset as such, actually the user enters the values which
    should be printed.

    Thanks in advance


  • edited July 2003
    Hi,

    Sorry, I was mistaken, the JITPipeline is an event-handler based
    datapipeline used to print data from an array, TStringList, TList or any
    other data structure. You may still want to use a JIT Pipeline to control
    the amount of records get sent to the report. Then also be sure to check
    out the BandsPerRecord property to limit the number of label you print.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Thanks, I used the TextPipeline with a Text file. That is I wrote the
    contents of the label as a delimitted record on to a text file, and thus
    same record is repeated so many times as the required labels. and thats it !
    worked fine. Thanks Nico.

    Regards

    Moorthy
    ~~~~~~

This discussion has been closed.