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

Getting user value

edited October 2001 in General
hello, i want to get an user value to store in a variable....
i have a variable 'pagenumber' and want that the end user set this value...
or a way to let the end user say wich page the report start from

tnks

Comments

  • edited October 2001
    There is a GotoPage method on the Viewer object. Then you could control the
    page list going to the printer to print only the pages that are after this
    page number by using the ppTextToPageList method that main reports demo #124
    uses.

    {print pages 1 and 30 }
    ppTextToPageList('1,30', Report.PrinterDevice.PageList, True);

    change to:

    {print pages 1 through 30 }
    ppTextToPageList('1-30', Report.PrinterDevice.PageList, True);


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    Hi Jim,
    let me try to explain better than before, all reports of my project are
    stored in the database using report explorer and autosearch panels to
    control the report.
    This report i'm trying to make an page offset, like PageNumber := PageNumber
    + Variable1.Value, but the variable1.value must be set by the end user, just
    like an autosearch field/panel.

    tnks


  • edited October 2001
    I solved the problem creating a pass-thru function to InputQuery, but isn't
    the best user friendly way to get some value.

    Tnks anyway....

  • edited October 2001
    Cool, you've got it, the RAP pass through is probably the easiest way, since
    the report is a template saved on the database.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.