on 07-21-2010 2:29 PM
Hi,
I have to implement a business logic where in i will have to display the no. of pages generated for the report
Say for e.g. crytal report that's generated spans 25 pages in the report.
Then i will have to display a message to the user after the report generation something like "25 Pages generated"
So, how would i get this report page count so that i can fetch the value and display the same to the user.
Any sample code snippet would be of great help.
Thanks in Advance
Regards,
Ramnath
Moved to .NET Development - Crystal Reports forum.
Please search for your answers first. Typing in "page net crystal" in to the search box at the top right of this page retrieved the following KBase
[1216240 - How to retrieve the number of pages from a ReportDocument in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]. I think that has the info you are after(?).
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am using crystal reports 2008 and i visited the link forwarded in your previous mail and got the solution for getting the lastpagenumber of the report.
nPages = crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)
but, i don't find FormatEngine property for ReportDocument object.
I just wanted to know whether this property is availale in crystal reports 2008 or should i even install any service packs for this.
Please find below the namespaces that importing in my class
Imports System.Windows.Forms
Imports System.Drawing.Printing
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.CrystalReports.ViewerObjectModel
Imports CrystalDecisions.Shared.ReportPageRequestContext
Please let me know how can i get the formatEngine property for reportdocument object
Thanks in Advance
Regards,
Ramnath
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.