Skip to Content
author's profile photo Former Member
Former Member

Find whether current page is the last page

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 03:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2007 at 01:33 PM

    Post Author: guyi

    CA Forum: JAVA

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.