Blank page in report

I created an application in VB.NET 2010 that launches a report in CR2010.
In VS2010 when launching the report displays fine but on the distribution server (Windows 2008 R2, Web Edition 64-bit with IIS 7), the report is displayed with a blank page. I installed the 64bit runtime package (CRforVS_redist_install_64bit_13_0.zip). This is the code that runs the report:
        Dim objReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Dim ConInfo As New CrystalDecisions.Shared.TableLogOnInfo()
        Dim mySubRepDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        Dim MyCon As New ConnectionInfo()
        Dim param As List(Of ParametroFormula) = Me.ParametriStampa
        Dim myTableLogonInfo As New TableLogOnInfo
        Dim mySubReport As ReportDocument
        Try
            objReport.Load(Me.PathNomeReport)
            If Me.NomeFileXML <> String.Empty Then
                For Each table As Table In objReport.Database.Tables
                    table.Location = Me.NomeFileXML
                Next
                For nSub As Short = 0 To objReport.Subreports.Count - 1
                    For Each table As Table In objReport.Subreports(nSub).Database.Tables
                        table.Location = Me.NomeFileXML
                    Next
                Next
            Else
                Dim sqlConn As New SqlConnectionStringBuilder(System.Configuration.ConfigurationManager.ConnectionStrings("ATC_DB").ToString)
                With MyCon
                    .DatabaseName = sqlConn.InitialCatalog
                    .ServerName = sqlConn.DataSource
                    .UserID = sqlConn.UserID
                    .Password = sqlConn.Password
                End With
                For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In objReport.Database.Tables
                    myTableLogonInfo = myTable.LogOnInfo
                    myTableLogonInfo.ConnectionInfo = MyCon
                    myTable.ApplyLogOnInfo(myTableLogonInfo)
                Next
                For nSub As Short = 0 To objReport.Subreports.Count - 1
                    For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In objReport.Subreports(nSub).Database.Tables
                        myTableLogonInfo = myTable.LogOnInfo
                        myTableLogonInfo.ConnectionInfo = MyCon
                        myTable.ApplyLogOnInfo(myTableLogonInfo)
                    Next
                Next
            End If
            If param IsNot Nothing Then
                Dim par As List(Of ParametroFormula) = (From e In param
                                                       Where e.isParameter = True
                                                       Select e).ToList
                Dim form As List(Of ParametroFormula) = (From e In param
                                                       Where e.isParameter = False
                                                       Select e).ToList
                Dim nPar As Short = 0
                For Each p As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition In objReport.DataDefinition.ParameterFields
                    If p.ParameterType = ParameterType.StoreProcedureParameter Then
                        objReport.SetParameterValue(p.Name, par(nPar).Valore)
                        nPar += 1
                    End If
                Next
                For nSub As Short = 0 To objReport.Subreports.Count - 1
                    mySubReport = objReport.OpenSubreport(objReport.Subreports(nSub).Name)
                    nPar = 0
                    For Each p As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition In mySubReport.DataDefinition.ParameterFields
                        If p.ParameterType = ParameterType.StoreProcedureParameter Then
                            objReport.SetParameterValue(p.Name, par(nPar).Valore, mySubReport.Name)
                            nPar += 1
                        End If
                    Next
                Next
                For Each f As FormulaFieldDefinition In objReport.DataDefinition.FormulaFields
                    If form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower) IsNot Nothing Then
                        f.Text = form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower).Valore
                    End If
                Next
                For nSub As Short = 0 To objReport.Subreports.Count - 1
                    For Each f As FormulaFieldDefinition In objReport.Subreports(nSub).DataDefinition.FormulaFields
                        If form.Find(Function(e) e.Nome.ToLower = f.Name.ToLower) IsNot Nothing Then
                            f.Text = form.Find(Function(e) e.Nome.ToLower = f.Name).Valore
                        End If
                    Next
                Next
            End If
            'If there is a selection formula passed to this function then use that
            If selectionFormula.Length > 0 Then
                objReport.RecordSelectionFormula = selectionFormula
            End If
            'Re setting control
            CrystalReportViewer1.ReportSource = Nothing
            'Set the current report object to report.
            CrystalReportViewer1.ReportSource = objReport
            Return True
        Catch ex As System.Exception
            File.AppendAllText(MapPath("~\Log\") + "log.txt", String.Format(" - Errore ViewReport: ", Now.ToShortDateString, Now.ToShortTimeString, ex.Message.Replace("'", " "), vbCrLf))
            MessaggioLabel.Text = "Impossibile visualizzare il report"
            Return False
        End Try
Thanks.
Edited by: GCriscuolo on Jan 19, 2011 6:42 PM
Edited by: GCriscuolo on Jan 19, 2011 6:43 PM

The BusinessObjects.Licensing.KeycodeDecoder.dll issue is well documented in these forums as well as the Kbase and is of no consequence here, or with any other issue.
I think language issues are getting in the way on us here as we are interpreting your description quite differently than what you are trying to say. At this point in time, I am not suer if you are even seeing the viewer(?). E.g.; do you at least get the viewer toolbar?
I'd recommend looking at a web sample app or two, deploying one of these and see how it works. Deploying a web app that uses a viewer as well as one that does not use a viewer may be a good idea. Samples can be downloaded from here;
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
Looking at the following two articles may also help;
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
While the issues described in the above articles are not identical to what you are experiencing, it will give you an idea on how the CR viewer behaves and how it needs to be configured (particularly pay attention to non default web site setup). The articles also do not cover CRVS2010, but as you will see from reading the articles, the pattern is pretty self explanatory - no matter the version of CR.
- Ludek

Similar Messages

  • HOW TO ELIMINATE BLANK PAGES IN REPORTS?

    Sep 11, 2002 13:07 PT
    I'am having troubles with reports, i have design a report that has 2 sql, so there are 2 layouts in the report, the first one has many columns so I put it in 2 pages wide but the second sql is only four columns, so it is in just 1 page wide, my problem is when the report is printed the first pages are printed but when the data from the second sql begins i have one page printed then one left blank, the check box that indicates blank pages is uncheked, but the blank pages still remain printed, if anybody has the solution please let me know
    tnx
    pd. I'm working with report builder 6.0.8.12.1

    Use the commandline parameter BLANKPAGES=NO. This will suppress blank pages when you generate to file and print.
    -Siva B

  • Blank page in report o/p and o/p notprinted when contains multiple pages

    Dear Friends,
    I am facing couple of issues while modifying an existing report
    1. First page of the report is Blank
    2. Report output is not printed when the output contains multiple pages.
    Currently, along with the data, the report prints the output format in the first page and some totals in the last page.
    The requirement is that we do not want these first and last pages.
    For this, i made the following modifications to the report.
    In the Layout Model,
    *1. Under the body of Header section, we have a repeating frame which is printing the output format that comes out as report first page.*
    Both Horizontal and Vertical Elasticity are set to Fixed and below is the code in the format trigger on this repeating frame.
    function R_HEADER_PAGESFormatTrigger return boolean is
    begin
    if :p_header_pages = 0
    then return(false);
    else return(true);
    end if;  return (TRUE);
    end;I modified this format trigger to always return false as shown below
    begin
    return false; --statement added by me
    if :p_header_pages = 0
    then return(false);
    else return(true);
    end if;  return (TRUE);
    end;*2. Under the Body of Trailer section, we have a main frame which prints summary information.*
    Both Horizontal and Vertical Elasticity are set to Fixed and below is the contents of the Format trigger on this frame
    function M_CONTROL_GRPFRFormatTrigger return boolean is
    begin
    if :report_term_count > 0
    then return(true);
    else return(false);
    end if;  return (TRUE);
    end; I have modified this trigger to always return False as shown below
    function M_CONTROL_GRPFRFormatTrigger return boolean is
    begin
    return false; --statement added by me
    if :report_term_count > 0
    then return(true);
    else return(false);
    end if;  return (TRUE);
    end;When i run the report after doing these modifications, i am facing the above mentioned problems.
    Any idea on why a blank page is coming out before the actual data?
    Also when the report output contains multiple pages, the output is not printed. Any idea on this?
    Regards,
    Sreekanth
    Edited by: Sreekanth Munagala on Mar 23, 2012 1:15 AM
    Edited by: Sreekanth Munagala on Mar 23, 2012 1:18 AM

    Hi InoL,
    I have tried by setting vertical elasticity to variable but the blank plage is still coming in the output.
    Also, i am just wondering that blank page is not shown for the trailer page even though the Horizontal and Vertical Elasticty is set to Fixed.
    Could you please let me know if you have any idea on this?
    +InoL Wrote:+
    +And this didn't happen before you made the changes to the format triggers?+ Sorry for not mentioning that this happens when i delete the entire fields and frames in Header section.
    Setting the Vertical Elasticy of Header to False and returning false in Format trigger still prints the blank page in addition to the actual data pages.
    I have also tried setting the option BLANKPAGES=NO in the concurrent program execution options but still the blank page is not suppressed.
    Regards,
    Sreekanth
    Edited by: Sreekanth Munagala on Mar 25, 2012 8:33 PM

  • Insert blank page into report after odd page

    I'm trying to get my report to insert a blank page at the end of each invoice if the invoice is an odd number of pages. We're looking to start printing two-sided invoices and need each invoice to be able to be mailed to the customer. I already have New Page after on the report footer and that works, but if I have a 3 page invoice, I need it to have a blank page as page 4 (without a page number). Page numbers are also being reset for each invoice if that matters. This is using Crystal Reports 10.

    Hi
    You can try the below:
    - Open section expert.
    - Select the section after which you need a new page.
    - Click on Paging Tab.
    - Put the below formula in X-2 for New page after:
    PageNumber mod 2 =0;
    - Save and close the formula editor.
    - Click on Ok.
    You can also apply some suppresion condition as per requirement.
    Hope this helps!!
    Regards
    Sourashree

  • Blank page in report designer

    In my report designer, I have two sections. In the last row of section 1, I have a "page break after" checked. And in section 2 first row, I have "page break before" checked. Due to this I am getting a blank page between section 1 and 2. However, if I remove the "page break before" from section 2, it tries to print both sections on the same page. How can I remove the blank page without messing the report?

    Thanks for responding, Jonathan.
    Is the same runtime installed on the 64 bit system? I notice from your version number that you do not have any service packs installed on the dev system. SP 2 is out and may help.
    I have installed SP1 and SP2 this morning, resaved the report file and tried again but the same problem remains.
    I'm not sure how to answer your runtime question. I am using the same application built with the same merge modules on both the dev machine and the production server. Of course, the dev machine has the additional complication of having Crystal Reports 2008 installed. Perhaps this is causing the difference?
    Compare the printer settings between the two systems. Try installing the same printer driver on the 64 bit system.
    Perhaps I am misinterpreting your suggestion, but I am not printing the invoices. I am only exporting them to PDF. It is the PDF that has the extra page. Is there a 'print to PDF' driver of some sort that I need?
    Also, was the .NET application compiled as 32 bit, or Any CPU? Whichever it was, try switching it then recompiling to see if that helps.
    I tried switching to Any CPU but this caused the Crystal Reports module not to load at all on the 64bit Windows server.
    Thank you for your suggestions, but my problem remains. Is it worth trying with the redistributable msi rather than using the merge modules? If so, could you recommend which one I should use? I am using Visual Studio 2008 Professional.

  • How to remove blank pages from report

    Hi All
    i have a condition where i have to display the record only when trxn lines are available for that record ,inside my for each group condition i put the if condition having a count variable so if count is not zero then only the record will be displayed ,it works but problem is it shows blank pages for those records.
    any clue would be very helpful.Thanks in advance
    Thanks
    Pratap

    Hi All
    The solution of this issue is given in below mentioned thread
    How to avoid blank page in BI Publisher
    Thanks a lot to Vestrini :)
    Thanks
    Pratap

  • Render blank page in report

    Hi,
    I am designing a report that displays page number in page footer. The report only has 4 data rows that spans half a page. When I export the report in Excel format, two pages are created with page one has data and blank footer and page two has no data and "Page 1 of 1" in footer. If there is only one page of data, why are two pages rendered? How come page one has blank footer and  page 2 has incorrect page number?
    Thanks.

    Hi,
    While exporting it to excel format you get option for exporting.
    In page range section specify only one page and check it.
    There is an option export page header and footer you can specify either for once per report or
    Once per page Try this and let me know the result.
    Hope this helps you.
    Regards,
    Neo.

  • Blank first page in reporting services

    I have an SSRS 2008R2 report that displays a blank page in Report Manager but not in the PDF export.  I have tried all of the online solutions I have seen but still haven't found the cause.  About my setup is I have one rectangle overlapping
    3 tablixes.  I understand that I really need to have these 3 tablices contained within this rectangle, but I can't figure out how to do this for already existing tablices.  Is this possible?  And is this the cause of the extra blank page?
    Ryan D

    Hi ironryan77,
    According to your description, you get an extra blank page in your report when viewing in Report Manager. But it works properly when exporting into PDF file. Right?
    In this scenario, how does your report looks like in SSDT(developing environment)? Please check if you add any page break before the rectangle. Also please check a page size of the report. Make sure "Page Width >= Body Width + Left Margin +
    Right Margin".
    I have also seen this kind of strange issue, please see a similar thread below:
    http://social.technet.microsoft.com/Forums/en-US/a3633629-74dd-437d-bec9-131285f83f35/report-viewer-shows-blank-page-but-the-blank-page-is-skipped-when-exported-to-pdf?forum=sqlreportingservices
    If possible, please share some screenshots about the report design and report view in Report Manager and PDF. That may help us figure out the reason. Thanks.
    Best Regards,
    Simon Hou

  • How to remove blank pages from WebI Report in view page layout option

    Hi,
             I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
    Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
    Thanks in advance.

    Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
    Now check if there are any cell going into second page.
    - if there are any blank cell which is there after table.
    you have to check formating very carefull.

  • The report engine add a blank page at the end of report

    I have configured a group with the option "New page after" checked. The problem of that seems the engine add a new blank page at final of report. Exists some way for avoid that? Perhaps is possible add a formula for don´t allow that when is in the last page?
    Regards and many thanks for the help.

    Many thanks. That works

  • Blank page coming in the Webi Report in a particular tab

    Hi,
    i have a webi report which uses a two Cross tabs.and it is sectioned by 'Business Segment' object. and 'Group name' object has been used to group the data in each cross tab.it has multiple tabs in the report each named same as the group name used in the cross tab.
    so now when i export the report into the PDF document one of the tabs is having a blank page (i.e 2nd page is a blank page off the 4 pages it has). i am using XI R 3 version.
    so please suggest me what formatting changes to be done for that particular tab(s) to remove the blank page off the 4 pages.
    Immediate suggestion is very helpful.
    Thanks & Regards,
    Kishore.

    Hi,
    Thanks for your suggestion.however i checked all the cells. everything is well fitted.one more thing is that similar kind of data is visible in other tabs without any issues. so it is happening only in a particular tab.
    Any other advanced settings to do to avoid the blank pages in between  the PDF document?
    Regards,
    Kishore.

  • REPORT SERVER 6i Patch1 PRINTING BLANK PAGES

    I have a problem that is occouring on three different report servers. It will start printing blank pages instead of the report and the only way to get it back to normal is to stop and reastart the service. I get this on a version 6, version 6i and version 6i patch1 report servers. It makes no difference what call method I use (command line or OCX control). I can also force this behavior on one of the servers by selecting a HP 895C as the default printer in the windows printers and then starting the service. All pages print blank after that. At the customers site it appears to be random as to when it will start printing the blank pages.
    Any ideas on what the fix is for this?
    null

    Is there any ideas on this?
    We have a Reports 6i server up and running and I'm getting stuff out OK to postscript printers, but some HP older printers are just spitting out blank pages. Is there a desformat= that I need to set differently? I've tried most of the options ( dec, psport, psland, hpl... all blank )
    Appreciate any help, I haven't used this stuff long, so am quite naive about how it hangs together.
    null

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • BI 7.0 Analysis Authorization issue: some reports displaying a blank page.

    Hi All,
    This is regarding BI 7.0 Analysis Authorization issue.
    Overview:
    we have restricted some queries at infoobject level.
    Issue:
    a. For some of the queries, we can see the selection screen but when we try to execute the query by clicking on the execute button (Queries WAD) we get a blank page, meaning nothing is displayed on the output (white/Blank screen).
    b. When we execute the same query through RSRT, we get a message which says "Disconnecting from BW server..".
    c. Let me explain further on this. Basically we are doing this in order to have limited access to Auditors at the client side. At the same time normal users should not get impacted due to this, hence we created two roles. One for normal users and other for Auditors.
    d.  Now the thing is that we execute the same report with normal user ID's the report executes properly and displays the output. it does not show the blank page.
    e. But when we execute the same report with Auditors ID then we get a blank page.
    Any idea why this is so?

    Hi Neha,
    I tried the below also,
    GL Acnt
    I EQ 0000134010
    I EQ :
    but still it didn't work.
    No Infoobject is missing in Authorization Object.
    For your point, "rsecadmin - > analysis -> execute as -> check for the desired user & analyze the log" it didnu2019t allow me to analyze, since as soon as click on execute button a pop-up comes up saying "Disconnecting from the BW server..."
    As mentioned earlier also it is giving me the below message,
    ""I>> Row: 103 Inc: AUTHORITY_02 Prog: CL_RSR_RRK0_AUTHORIZATION                                                                       RS_EXCEPTION        301CL_RSR_RRK0_AUTHORIZATION                         AUTHORITY_02"
    Kindly suggest, since this is a show-stopper for us!
    Thanks,
    Ishdeep Kohli.

  • Crystal Reports 2008 - Blank page on server only

    Crystal Reports 2008 - Blank page on server only
    My report is developed in the Crystal Reports 2008 Report Designer 12.0.0.683.
    I have a .NET application that takes the report file, an ODBC connection and exports the resulting report to PDF. This application is deployed as an MSI and includes the Crystal Reports .msm merge module. The report uses multiple views and tables from a single database to create invoices in PDF format.
    Problem: For one particular invoice, a blank page is being added to the end of the invoice. This blank page contains the report's standard page header. There is no missing data and no missing sections on the invoice. This is only occurring when the pdf is generated on a Windows Server 2008 x64 server where the application is deployed using the merge modules.
    I have installed the application locally on my Windows Vista Business x86 system and the generated PDF does NOT contain the blank page at the end.
    The blank page is not generated when previewing the report in Report Designer. For the particular invoice this is occurring on, footer F and footer G are blank and therefore suppressed.
    Please bear in mind that this happens only for one particular invoice that uses this report file and does not happen from my local system using the same .rpt file.
    The report is constructed of the following sections:
    -Page Header (suppressed on page 1)
    -Grp1 header A (watermark conditionally suppressed based upon a parameter)
    -Grp1 header B (Keep together - always fits onto a single page)
    -Details
    -Grp1 footer A (Keep together)
    -Grp1 footer B (Conditionally suppressed based upon data)
    -Grp1 footer C (Keep together)
    -Grp1 footer D (Contains sub report(suppressed when blank). Keep together. Suppress blank section. New page before but (Not OnLastRecord))
    -Grp1 footer E (Contains sub report(suppressed when blank). Keep together. Suppress blank section.)
    -Grp1 footer F (Contains sub report(suppressed when blank). Keep together. Suppress blank section.)
    -Grp1 footer G (Contains sub report(suppressed when blank). Keep together. Suppress blank section.)
    -Report footer (Always blank. Suppress blank section)
    -Page footer (Fixed static content, displayed on every page.)
    Edited by: alibaabaa on Oct 12, 2009 12:41 PM
    Edited by: alibaabaa on Oct 12, 2009 12:45 PM

    Thanks for responding, Jonathan.
    Is the same runtime installed on the 64 bit system? I notice from your version number that you do not have any service packs installed on the dev system. SP 2 is out and may help.
    I have installed SP1 and SP2 this morning, resaved the report file and tried again but the same problem remains.
    I'm not sure how to answer your runtime question. I am using the same application built with the same merge modules on both the dev machine and the production server. Of course, the dev machine has the additional complication of having Crystal Reports 2008 installed. Perhaps this is causing the difference?
    Compare the printer settings between the two systems. Try installing the same printer driver on the 64 bit system.
    Perhaps I am misinterpreting your suggestion, but I am not printing the invoices. I am only exporting them to PDF. It is the PDF that has the extra page. Is there a 'print to PDF' driver of some sort that I need?
    Also, was the .NET application compiled as 32 bit, or Any CPU? Whichever it was, try switching it then recompiling to see if that helps.
    I tried switching to Any CPU but this caused the Crystal Reports module not to load at all on the 64bit Windows server.
    Thank you for your suggestions, but my problem remains. Is it worth trying with the redistributable msi rather than using the merge modules? If so, could you recommend which one I should use? I am using Visual Studio 2008 Professional.

Maybe you are looking for

  • Installation of  Oracle 10g Developer Suit on W2k8 64bit Fail

    Hi Team, I installed oracle 10gR2 Database on windows 2008 64 bits. Now I am trying to install 10g Developer Suit on W2k8 64bit, following errors message is occured while installation. javaw.exe - Entry point Not Found "The Procedure entry point GetP

  • How do I get videos from itunes to my iphone?

    Okay so, I have videos uploaded to itunes and they are under the films tab, but when i sync my iphone they dont go to my videos? Does anyone know how I can get them to my phone? thanks

  • PO history & BAPI_ACC_DOCUMENT_POST

    Hi! At dialogue creation down payment (F-48), the system creates communications between the purchasing order and the accounting document. I.e. in history of a position of the purchasing order there is a record with number accounting the document. And

  • How to upgrade DB node from 11.0.1.7 to 11.2.0.2 with EBS 12.1.2

    How to upgrade DB node from 11.0.1.7 to 11.2.0.2 with EBS 12.1.2 Is Note 1367644.1: Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.2) (Doc ID 1367644.1) can solve this issue? In this note, the instruction as: Instructions fo

  • How to rotate PDF with the automator?

    Hello everybody! I'd like to create a WorkFlow to rotate all the selected PDFs (one page PDF) of 90º. In the PDFs section of the Automator there isn't anything like that. Somebody can help me how to do it? Thks a lot! Enrico