Column printing - Print in column 1 when fieldvalue is True and print in Column 2 when fieldvalue is

Kim GreveKim Greve Albertslund, Denmark
edited 10:12PM in FastReport 4.0
Hi.

Is is posible to split a masterdata band up into two columns where Column 1 contains those rows where the fieldvalue = true and if fieldvalue = false

Or is there any other way to do this.

My problem is that I have a list of students i a schoolclass who should have there photograph taken.

When a student is photographed the field PhotoTaken is set to True. But some of the students isn't in school the day the class was photographed. And I would like to make a list of who's been photographed and whos not.

I can make a list with all the names in the dataset and show a checkbox with a checkmark if the student is photographed. But the readability of the list would be much better if I could split then into different colums.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:12PM
    use 2 memos in the band both will have the same datafield
    in the obp event of the memoviews or the band write code to set their visible property.
    ie
    memo1.visible := (<datasetname."fieldname"> = true)
    memo2.visible := (<datasetname."fieldname"> = false)
  • Kim GreveKim Greve Albertslund, Denmark
    edited 10:12PM
    gordk wrote: »
    use 2 memos in the band both will have the same datafield
    in the obp event of the memoviews or the band write code to set their visible property.
    ie
    memo1.visible := (<datasetname."fieldname"> = true)
    memo2.visible := (<datasetname."fieldname"> = false)

    Hi gordk.

    Thanks for the suggestion. Allmost there, but that's not exactly what I need.

    This way I get the two columns but, when a string is printed in the left column, a blank line is printed in the right column and when a string is printed in the right column a blank line is printed in the left column.

    I need the lines to lool like this:


    Text in Left column........................Text in right column
    Text in Left column........................Text in right column
    Text in Left column........................Text in right column
    Text in Left column........................Text in right column
    Text in Left column........................Text in right column
    Text in Left column........................Text in right column
    Text in Left column........................Text in right column


    Any other suggestions?
  • gordkgordk St.Catherines On. Canada.
    edited 10:12PM
    i would try using 2 side by side subreports one for left column one for right
  • Kim GreveKim Greve Albertslund, Denmark
    edited 10:12PM
    gordk wrote: »
    i would try using 2 side by side subreports one for left column one for right

    Great. That was it. [img]style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> I used a dataset where PhotoTaken=True in the left column and PhotoTaken=False in the right column Thanks.[/img]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.