cancel
Showing results for 
Search instead for 
Did you mean: 

Find whether current page is the last page

Former Member
0 Kudos

Post Author: guyi

CA Forum: JAVA

hi,I am using JRC to open and view a report in my JSP.I would like to create my own toolbar in the page, for that I set the toolbar display in the CrystalReportViewer to false as follow:viewer.setDisplayToolbar(false);I

need to recognize the current page number and whether current page is

the last one, I found that CrystalReportPartsViewer has the right

method isLastPage(), unfortunately it does not work - this method

always return false.(Note that I am using the viewer.getHtmlContent() method and not viewer.processHttpRequest()) Any idea?Thanks in advanceGuy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Post Author: guyi

CA Forum: JAVA

Hi Ted,exactly what i needed Thank you very much. Guy

Former Member
0 Kudos

Post Author: Ted Ueda

CA Forum: JAVA

Part of the equation is supplied via method:

doc.getReportSource().getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());

where doc is the ReportClientDocument class instance for the report.

Sincerely,

Ted Ueda