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
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);
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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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
the best user friendly way to get some value.
Tnks anyway....
the report is a template saved on the database.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com