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

How to esclude e record to be printed

edited June 2003 in General
Hello,
I have a dbgrid on a form and I am printing its content using report
builder. I have activated multiselection on the grid and I'd like to print
only the selected records. Can you advice me how to exclude the others
records from the report? Can I tell report builder to not print a record?

thanks in advance

Marco

Comments

  • edited June 2003
    Marco,
    I usually add an additional boolean field "Selected"
    The user then turns on (or off) the field (check mark) and then
    I use this field to select the records for printing.

    Jon

  • edited June 2003
    Yes that's ok Jon. But I don't want to re-execute the query or filter a
    table. I just want use the dataset visible at that time and print it. But
    also want the user select the record to print.
    I want to "remove" the record from the report not the dataset.

    Thanks
    "Jon Lloyd Duerdoth" ha scritto nel messaggio
  • edited June 2003
    Well the report could just set the detail band visibility
    based upon the 'Selected' field. That would not require
    the query to be re-executed. The report would then
    navigate all records.

    Jon

  • edited June 2003
    > I have a dbgrid on a form and I am printing its content using report

    1) You could also a JIT pipeline and traverse the selected records yourself.
    2) before printing, get the ID's from the selected records and filter the
    dataset then print.

    Ed Dressel
    Team DM
  • edited June 2003
    There is a demo in our main reports demo project which prints selected
    records from a grid. See demo #112.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.