Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Report / navigation to page number
Report / navigation to page number [message #55893] Sun, 27 December 2020 21:07 Go to next message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
HI,

how do i create a routine go to a certain page of the report?

Re: Report / navigation to page number [message #55895 is a reply to message #55893] Mon, 28 December 2020 05:04 Go to previous messageGo to next message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

the procedure

ReportView::ScrollInto(int toppage, int top, int bottompage, int bottom)

allows you to navigate through the pages using the scrollbar, but I haven't really found the meaning and also an example of the parameters toppage, top, bottompage and bottom.
could someone set an example ?
how it works ?

Thanks
Re: Report / navigation to page number [message #55898 is a reply to message #55895] Mon, 28 December 2020 13:52 Go to previous messageGo to next message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
index.php?t=getfile&id=6320&private=0Hi,

Ok! this worked within the ReportWindow class:

void ReportWindow::edgotoPage(){
        String s = edP.GetData();//edP * numeric field 
 	int np; // number of page
 	np=StrInt(s);
 	pg.ScrollInto(np-1,np-1,np,np);
}



note: see the image attached considerations about above routine







Re: Report / navigation to page number [message #55902 is a reply to message #55898] Mon, 28 December 2020 22:53 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 202
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
as an end result of this topic, if
add a droplist to navigate between
the pages would look like this image.

index.php?t=getfile&id=6322&private=0



Previous Topic: read argument count/vector in GUI
Next Topic: Modal DropList
Goto Forum:
  


Current Time: Fri Mar 29 01:45:46 CET 2024

Total time taken to generate the page: 0.01667 seconds