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

Printing blank record placeholders

edited September 2002 in General
I'm going to print a report which consist of labels in the following layout:

1 2
3 4
5 6
7 8

Each number represents a record.

Now, I'm required to insert blank records ahead so that the report becomes:

b b 6 7
b 1 8
2 3
4 5

Please tell me how to do that. Thanks. :)

Comments

  • edited September 2002
    Sorry, b means completely blank space. Thanks.

    "Lau Lei Cheong" ???g???l???s?D:3d8aca32@dm500....
  • edited September 2002
    Oh, I've found a way to do so. :)

    First, I created a MemTable with exactly the same field as the Query plus a
    field called dum.

    When I need to print the report, I inserted n times record with only 'dum'
    field filled with 1 and other fields blank. And than fill the records of the
    query in, with the 'dum' field set to another value, let's say 2.

    In the ppDetailBand1.BeforeGenerate event handler, if the field 'dum' = 1
    then set the controls on report invisible. Else set them to visible.

    Now I can see the placeholded space prints blank. :D

    "Lau Lei Cheong" ???g???l???s?D:3d8ad0bb@dm500....
This discussion has been closed.