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

change text in preview

edited July 2007 in General
Is the following possible with reportbuilder 7.04 professional and if so
how should this be done:
Let the user change specific text values in the report when in preview
mode and print the report in changed form.

Thank you

Luc Neville



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited July 2007
    Hi Luc,

    At what point would you like to change text in a report? Would it be
    possible to do this using autosearch criteria? Perhaps a bit more
    information about what exactly you would like to happen would help me
    understand what you need.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    hi Nico

    When the user is in preview mode, before he/she is going to print it
    out, it would be nice if he/she could click on certain area's of the
    report itself just to type in some data.

    for example:
    reportbuilder preview:

    record 1 field1 field2 field3
    record 2 field1 field2 field3
    record 3 field1 field2 field3

    Since the data in field3 could not be generated by the software and only
    filled in by the user it would be nice if the user clicks on any of the
    field3 fields which causes an editbox to appear(or some other way to
    fill in the data) for the record the user clicked on which could be
    filled in with the data the user wants.

    much like a form(sheet of paper) in real life that should be filled out
    by a user.

    thanks,

    Luc Neville



    --- posted by geoForum on http://delphi.newswhat.com
  • edited July 2007
    Hi Luc,

    The report viewer is not have a built-in feature to handle form input such
    as the report you describe below. As a workaround, you could possibly
    implement the OnDrawCommandClick event of a given component allowing your
    users to bring up a dialog that takes a value and regenerates the report.
    Below is an example of regenerating a report with a user click.

    http://www.digital-metaphors.com/tips/RefreshReportAfterDataChange.zip


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Thanks Nico

    I think I've found a solution to my problem using the tip you gave me.
    I'm using an inputform which gets shown when clicked on a field.
    Since the query has unique keys I use these values to locate which
    record needs to be updated.
    The key value is assigned to the tag property in the print event.

    Luc Neville



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.