Crystal Report Crosstab Page Number Issue

Hi Gurus,
I am creating the crystal report which has variable column fields, so the number of pages are variable.
The issue is, When i place the page number on the footer, It display only at the end of the page saying '1 of 1', I read lot of forums regarding this issue but didn't get resolved yet.
My crosstab is in the report header, I even tried the dummy group and placed the cross tab in that group. In that case i am getting '1 of 1' in all the pages.
Can you guys please help me to resolve this issue
Thanks
Vijay

Hi Vijay,
Try this Knowledge base article :  It works for all cr versions
Symptom
In Crystal Reports (CR) 9, a cross-tab needs to have page numbers for its virtual pages in the format:
"1", "1-1", "1-2", and so on.
How can the virtual pages of a cross-tab be numbered?
Resolution
Virtual pages can be numbered by conditionally formatting the 'Display String' property of a Cross-Tab field.
Displaying Page Numbers in Cross-Tab Virtual Pages
1. Right-click the top-left of a cross-tab and click 'Cross-Tab Expert'.
2. In the 'Cross-Tab Expert' dialog box click the 'New Formula' button, then name the formula 'Page Number'.
3. In the Formula Editor enter a blank space (" ") then click the 'Save' button. Close the 'Formula Editor' dialog box.
4. In the 'Cross-Tab Expert' dialog box select this formula from the 'Available Fields' box and move it to the 'Columns' box. Use the 'Up' arrow for the 'Columns' box to move it to the top of this box.
5. Click the 'OK' button to close the 'Cross-Tab Expert' dialog box.
6. Right-click the 'Column #1 Name' field on the cross-tab and click 'Format Field'. The 'Format Editor' dialog box will appear.
7. On the 'Common' tab click the 'X+2' button next to 'Display String'.
8. Enter the following formula in the 'Format Formula Editor':
global numbervar PageNum;
PageNum:= PageNum + 1;
if PageNum > 1 then "Page # " + totext(pagenumber,0) + "-" + totext(PageNum - 1,0)
else "Page # " + totext(pagenumber,0)
9. Click the 'Save and Close' button to close the 'Format Formula Editor' then click the 'OK' button to close the 'Format Editor' dialog box.
When previewing the report, the cross-tab will display "1" for the first page and then "1-1, 1-2" and so on, for the subsequent virtual pages. Navigating to page 2 will show "2" for the first virtual page followed by "2-1, 2-2" and so on.
Background
'Virtual pages' are the pages on a cross-tab from left to right as opposed to the actual pages that are accessed through the 'Navigation' buttons.
When you create a cross-tab that is wider than the specified page size, CR automatically spans the printing across enough pages to accommodate the width of the cross-tab. In the Preview tab, a line will appear at each page break.

Similar Messages

  • Update the web links on the Crystal Reports start page?

    Many of the web links on the Crystal Reports start page are now useless and direct to the general "Welcome to the SAP Support World!" page.
    When will / how can these be updated?

    You should be able to do searches here:
    https://www.sdn.sap.com/irj/sdn/businessobjects-articles
    https://www.sdn.sap.com/irj/sdn/businessobjects-downloads
    Ludek

  • Crystal Report Viewer Page Change Refresh Issue

    Hello
    I hope this is an easy question for someone out there.
    I am using a crystal report viewer with the code contained in the page init event. The report has several pages and opens in a separate tab. There is also a on demand drilldown sub-report in the report.
    When I want to move to the second page the viewer seems to process the code again (like its runs the page init event) which takes several seconds so will not be satisfactory for the users. I tried the concatenate the pages using the 'SeparatePages' property but then the user can't select a specific page.
    Is there any way that the report can just open in the viewer and not have to reload everytime the user changes page?
    Thanks in advance
    Dave.

    Hi Dave
    In a web app, you could place the reports in session. See KBA: 1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Reports 10 Enterprise Server Issue - Exporting Large Reports to PDF

    Weu2019re implementing a Crystal Reports 10 Server for a customer but weu2019re having an issue with exporting large reports to PDF.  The report size that starts to show this issue is roughly 300 pages with 20 records per page.  We use the default Crystal ActiveX viewer. 
    Basically what happens is that the user will launch the report in the ActiveX viewer and the large report will take a while to load, as much as 3 to 4 minutes.  The user may then wish to export to PDF.  Once they attempt it with these large reports the viewer will basically hang and possibly be processing but will then time-out after roughly 5 minutes with this error:
    u201CProxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /thinqreports/THINQCrystalInterface.asp.
    Reason: Error reading from remote server
    IBM_HTTP_Server/6.1.0.9 Apache/2.0.47 (Unix) Server at lmsproxy.aurora.org Port 443u201D
    We believe this error is coming from a server on our network.  We have a proxy server between users and the Crystal Server that has a 5 minute time-out for connections.  What we want to know is:
    - Is there a way to speed up this export to PDF process?
    - Should the Crystal Viewer be keeping an http connection alive to the Crystal Report Server while its doing this export process?
    - If not, what port does Crystal Viewer use to communicate with the Crystal Report Server? 
    - Is there something we can set in Crystal to keep an http connection open? 
    - What is actually occurring during this export process? 
    Occasionally, we may get the above error when simply launching a report, not just attempting to export to PDF.  We presume that is because loading the report into the Crystal Viewer from the Crystal Report Server is taking longer than 5 min.
    Anyone have any thoughts?  Thanks.
    Scott

    Scott,
    As this is happening within Enteprise (and I am assuming the report does not time out in the Crystal Reports Designer) I would suggest posting this to the BusinessObjects Enterprise Administration
    forum.
    My limited Enterprise knowledge would be to suggest scheduling the report as PDF but I don't know if that is a viable option for you.

  • Windows Server 2008 and Crystal Reports 8.5 printing issue

    I am having a problem when using the crystal reports 8.5 report viewer ocx (ActiveX) under Windows Server 2008.
    When logging onto the server through remote desktop, a report can be shown on screen in preview. When this report is printed, and the user requests more than one copy, the printer only ever prints one copy. Is this a configuration of the terminal server, or simply that the ocx control doesn't cater for it?
    I am using the Windows Server 2008 "Terminal services Easy Print" drivers on the terminal server.
    Any suggestions would be welcome.

    Hi Sastry
    I can print multiple pages from notepad without any issues. It is only the print from the crystal OCX control that has the issue. It has it's own print dialog box.
    Thanks
    Peter

  • Xcelsius - Crystal Report Data Consumer connection Issues

    Sorry for the long post but i hope with the full explaination, i can get a quick answer & solution.
    Using Crystal Reports 2008 and Xcelsius 2008 Engage, SQL 2008 stored procedure.
    I have tested the Crystal Reports Data Consumer connection within the Xcelsius program, using the following steps :
    1. Create a stored procedure that returns the Continent Name and the Count of Projects within each Continent.
    2. Create a Crystal Report using the stored procedure, 2 columns in the Details section, column names in the Page Header section.
    3. Save and export this as an Excel spreadsheet.
    4. Open the Xcelsius program, new file and import spreadsheet. Column A is the Continent Name, Column B is the Count.
    5. Without altering the spreadsheet, I created a graph using the data imbedded. i.Bar Graph, series and row selections. Ii. Pie chart with row data selection. Iii.Column data as series and row selections.
    6. Created a Crystal Report Data Consumer connection using the data imbedded within then spreadsheet. The column A as the u201CRow Headersu201D & column B as the u201CDatau201D. Took quite a while to get the right combination of selected components so that the preview actually showed the data and the corresponding data labels. The Legend still hasnu2019t shown up.
    7. Save and Export as Flash (swf) file.
    8. Close Xcelsius and open Crystal Reports.
    9. Open the same report used to create the spreadsheet and Insert -> Flash, choosing the newly created swf file.
    10. Link the data displayed On the Crystal Report to the Flash file now embedded, using the Flash Expert. Have tried both with the data listed on the Report, and the data listed as the result of the stored procedure.
    11. Previewed and the Data shown on the Graph does match the data listed within the Details section of the Report.
    12. I then altered the stored procedure to add u201C1u201D to all counts, and refreshed the Crystal Report. (I cannot add new data to the underlying database/tables, due to various other folks & projects using that same database.)
    13. The listed data does change to match the changes within the procedure.
    14. The Data labels on the Graph do change to match the changes within the procedure.
    15. The Actual Displayed Data within the Graph Does Not change to match the changes within the procedure.
    I have attempted this with a pie chart, a bar and column charts with the same affect.
    I have searched the web, printed out 4 different examples on how to make this work and still it is hit or miss. I still can not get the legend to show up, either in the preview or the within the Crystal Reports. When I preview the graph before adding the Crystal Report Data Consumer connections, it does work.
    Please someone tell me, What am I missing here ? 
    Thanks in advance for your help.

    http://www.****************/Tutorials/BI/Xcelsius/Index.htm
    http://www.resultdata.com/Company/News/Newsletter/2008/aug/Articles/Xcelsius/Using%20the%20Xcelsius%20Crystal%20Report%20Data%20Consumer.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10161e25-c158-2c10-3086-ad502098b36b?QuickLink=index&overridelayout=true
    http://codesforprogrammers.blogspot.com/search/label/How%20to%20suppress%20blank%20row(s)%20in%20detail%20section%20of%20the%20report%3F
    http://www.businessobjects.com/pdf/product/catalog/crystalreports/cr_xc_integration.pdf

  • Error when run crystal report viewer page

    Hi I created form using vb 2008 contains crystalreportviewer and in load sub I wrote the following code to show the report:
    Dim r_select As String
        Dim MyReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            r_select = "Select Innovative_Form.* from Innovative_Form"
            Dim da As OleDbDataAdapter = New OleDbDataAdapter(r_select, System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ToString())
            Dim da33 As New System.Data.DataSet
            da.Fill(da33, "DataTable1")
            MyReport.Load(Server.MapPath("CrystalReport.rpt"))
            MyReport.SetDataSource(da33)
            Me.CrystalReportViewer1.ReportSource = MyReport
            Me.CrystalReportViewer1.DisplayGroupTree = False
            Me.CrystalReportViewer1.DataBind()
            Me.CrystalReportViewer1.ShowFirstPage()
        End Sub
    when run I got the following error
    Server Error in '/Innovation Last Version-10-1-10' Application.
    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    Line 34:
    Line 35:
    Line 36:         Dim da As OleDbDataAdapter = New OleDbDataAdapter(r_select, System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ToString())
    Line 37:
    Line 38:
    Source File: C:\Users\kisruser\Desktop\PROJECTS\Innovate Project\Innovation Last Version-10-1-10\Report.aspx.vb    Line: 36
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
       Report.Page_Load(Object sender, EventArgs e) in C:\Users\kisruser\Desktop\PROJECTS\Innovate Project\Innovation Last Version-10-1-10\Report.aspx.vb:36
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
    SO WHAT IS THE PROBLEM?????

    What version of CR are you using?
    What CR updates are you using?
    See sample apps here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    in particular check out vbnet_win_pass_dataset_main_sub.zip
    The [Crystal Reports for Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23] will also be good to look at.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Crystal Report viewing and Printing Issue

    Hi Experts
                    I use crystal Reports for PO,AR Invoice,Delivery and many other documents.It takes more than 5 mins to view layout from crystal report and print sequence printing takes more than 10mins.Please Help me to rectify this issue..
    Regards
    Naresh Kumar

    Hi Naresh,
    What is your SAP version and Patch Level ?
    I believe in new version this issue has been addressed by SAP. Also note SAP B1 8.81 PL 07 has some issues in crystal Report, it asks for SQL user id and password, SAP is aware of this issue. So if you plan upgrade to latest PL then ensure that Crystal report issue is resolved, otherwise you will be in trouble.
    BR
    Samir Gandhi

  • Crystal Report 9: Page setting

    Hello there.
    I have one question.
    I have created one report. Example the report have 2 pages.
    The report is like details information with signature at the bottom of the report.
    Only the signature goes to page two. My problem is the page number for page 1 and 2 is stated as
    Page 1 of 1 (both page 1 and 2) instead of Page 1 of 2 (at page 1) and Page 2 of 2 (at page 2).
    How to solve this problem?
    Best regards,
    Alias

    Hi Alias,
    Please ensure that the  "reset page number after" is unmarked in the section expert on the grouping that this displaying in the report.
    Regards,
    Zack H.

  • Crystal Reports 2008 Page Header needed on all pages.

    I have Crystal Reports 2008.
    In my report I need the Page Header and Page Footer to appear on all pages.
    When I have over 50 detail records/lines the Page Header appears on only odd pages, the Page Footer is OK on all pages.
    How do I change the Page Header to print on all pages in CR 2008?

    Thanks what work was creating a Page Header b and moving all header info there.
    This report has 4 levels of groupings and I am finding that group effects a lot.

  • Crystal Reports 9: Page Header plus Page Footer is too large for the page.

    Hi,
    I have a report that has the following sections.
    GH1
    GH2a
    GH2b - has a sub report
    GH2c - has another sub report
    GH3
    GH4
    GH5
    details - suppressed
    GF5 - suppressed
    GF4 - suppressed
    GF3 - suppressed
    GF2 - suppressed
    GF1 - suppressed
    The report works fine wehn I run it using Crystal Designer.I am using CR version 9.2.2.693.
    When I try to load the report in my application, I get the following error.
    Crystal Report Windows Forms Viewer
    Page Header plus Page Footer is too large for the page.Error in File rptName.rpt:
    Page header or footer longer than a page.
    OK  
    There are no 'suppress blank sections' option set in the sections where the sub-Reports are.
    I also tried setting the No Default Printer option.
    The report gets loaded from the application only when I set 'New Page after' in the sections where there are sub-Reports.
    I do not want to do this; Is there a workaround?
    Thank you.

    Can someone tell me if this problem is being worked on as it looks as thogh none of the problems regarding the message u2018Page Header plus Page Footer is too large for the pageu2019 have been addressed.
    We have several reports that were written in Crystal 7 (I think) and worked in Crystal 9 and X1R2 but now give the above error. We have tried jigging the report in line with the various suggestions but at best can get them to run through successfully with one lot of data and then fail on the second or subsequent pages when you vary the data or report format even slightly. We can report on every bit of data separately or in various combinations but not in others. Changing the bottom page margin by 0.01 cm can cause it to fail on page 7 instead of page 530 (for example). We certainly do not have large page headers (just over 2cm) or page footers (about 0.3cm). We do have some subreports in the details section but have used 'fit to section', added 'keep together', removed u2018keep togetheru2019 from just about everything we can (in desperation) but to no avail. We cannot see a pattern to what is happening. It would be encouraging to know that someone is actually working on this fault.

  • Crystal Reports and SAP Integration Issue

    Gurus,
    I am in the process of reinstalling my SAP B-One(2007 A) Server, after SQL Server and SAP Server and Client installtions and its related patch PL10. My machine is fully loaded and to go, but I am stuck with Crystal Reports Basic 2008 installtion.
    After installting the below for Crystal Reports:
    1) .NetPlatform SP1 setup (dotnetfx35sp1)
    3) Crytatl Runtime
    4) Crystal Setup
    5) Crystal SAP Viewer
    6) CR2008_SP3
    My integration between SAP and CR are fine but after first log off and log on of SAP B-One.
    Shows the below messages:
    - "The new version of Add-on Crystal Reports for SAP Business One is
    installed. Upgrade the Add-on in the current Common DB."
    followed by the below one.
    "Wrong Executable digital signature for Add-On".
    Any advices on how can I upgrade the Common DB.
    Faisal

    Hi  Faisal,
    Is this issue realted to the previous thread you have posted. It looks similiar.
    Re-installation meaning that you had installed aprevious version and now upgrading or is it a full installation.
    Regards,
    Rakesh N

  • Get report  total pages number

    Please guide me to get the total no of pages of a report in runtime..,
    how to achieve it.

    From the menu (in Paper layout)- Insert Page number.

  • Crystal Report Server 2008 Import Issues - Missing report schedules/history

    Hello all,
    I have recently on a test machine installed Crystal Report Server 2008 V0. I then created several test reports and put them on the server and created schedules and a history for each one.
    Once this was done I exported the information into a BIAR file. Uninstalled CR Server 2008 V0 and installed CR Server 2008 V1 SP3.
    I then imported this BIAR file. After the import my reports are there, but all schedules and history are lost? Is there a way around this? How can I ensure all schedules are brought over in the import?
    Please note I followed this workflow: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5048d962-8fa6-2c10-e2ae-d32b3562cb9c
    Comments on it seem to indicate this is a common issue.
    Thanks!
    Edited by: Rick J on Jan 5, 2012 9:59 PM

    Good day Philippe,
    You have been able to solve my issue, thank you! In following the instructions I didn't notice the "Import all instances" tick box, I simply assumed hitting select all would work and glazed right over it. So this was certainly user error on my part.
    Thank you so much for the information!
    - Rick

  • How to report current page number to the browser...

    I need to dynamicaly attach a script in a bunch of PDF files. The script will be attached when the user requests the document and the document will be embeded in the page like this:
    <embed id="PDFObj" src="test.pdf" width="100%" height="100%">
    I have a JavaScript in my webpage with a message handler:
    var PDFObject = document.getElementById("PDFObj");
    PDFObject.messageHandler =
      onMessage: function(aMessage)
        switch (aMessage[0])
          case "_pdf_PageOpened":
            alert("!_pdf_PageOpened!\n" + aMessage[1]);
            break;
    I'm using hostContainer.postMessage on Page/Open event and it works just fine when the event(action) is manualy attached.
    My question is:
    How to attach the Page/Open event on every page in the PDF file using script that runs on Acrobat Reader?
    In Acrobat Pro I can use Doc.setPageAction() but it doesn't work in Acrobat Reader that is embeded in the browser window.
    OR
    Is there any other way to report the current page number to the webbrowser for an embeded PDF?

    Hi,
    to get the current page, you can use the index of your master page ("Restricted").
    $ = $.parent.index +1
    and for the total pages use
    $ = $layout.pageCount()

Maybe you are looking for