Crystal Report Page Control error...

Using Visual Studio 2008, Crystal Reports 2008
I am trying to build report interaction features like group expand,collapse, show hidden section etc at run time into my application that is based on VS 2008 and Crystal 2008 .
I have had good success and the Crystal Viewer exhibits expected behavior if I  do not meddle with the sections of the Page control of the viewer. Instead if I  just remove the Page control from the viewer and add a new one that is passed by a run time viewer that I create on the fly just to get the new Page control. Unfortunately, this approach causes the report viewer control to do a momentarily disappearance act that makes the whole thing look less intuitive.
As a work around, I just pass the sections of Page control that I have created on the fly to the actual viewer and follow it changing the Zooming scale marginally on the page control of the actual viewer on the form. This causes the Page control to reflect all the changes that I have done on the page control of the run time viewer and works like a charm without any flicker or refresh like behavior.
But the good things stop here, as apparently, the Page control holds a different collection of section instances and report object instances than the one is displayed on report.
Clicking on most of the objects after this change causes the below exception. The whole concept falls flat and I do not want to use the adding/removing page control approach as it not intuitive at all.
All the subs mentioned in the error log are protected crystal procedures. That leaves me with no option but to wait for a reply for the experts at SAP.
Regards,
Faisal
Error Source = CrystalDecisions.Windows.Forms
Error Message: Index was outside the bounds of the array.
   at CrystalDecisions.Windows.Forms.PageControl.PageControlAccessibleObject.NotifyClients(Int32 sectionInstanceIndex, Int32 objectInstanceIndex, AccessibleEvents accEvent)
   at CrystalDecisions.Windows.Forms.PageControl.TabTo(Int32 sectionInstanceIndex, Int32 objectInstanceIndex, Boolean scroll)
   at CrystalDecisions.Windows.Forms.PageControl.TabTo(Int32 sectionInstanceIndex, Int32 objectInstanceIndex)
   at CrystalDecisions.Windows.Forms.PageControl.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)

Thanks a ton for the help and suggestions...
Actually, I figured out a new approach where I don't have to meddle with the individual sections of the PageObject object of the viewer Page control and then leave it to the  mercy of the Crystal engine, if it likes what I done to the viewer object. But it does not negate the fact that the Crystal engine behaves funny if the PageObject sections of the viewer control are added or modified. You may argue that calling report refresh will fix it but  then it is not an option when you are building user interaction feature to a report.
Regards,
Faisal

Similar Messages

  • Crystal Report Viewer Control error

    Please Help, I have a web application developed in .net 2005 which is using crystal reports developer product version 10.0.0.533.
    This web application with crystal is working fine on my local machine with OS windows xp, but on the windows server 2003 the application web form is running into "couldnot load file or assembly 'CrystalDecision.VSDesigner, Version=10.0.0.3300' or one of its dependencies"
    I have compared the assembly information of my local machine with that of the server and could not see the crystaldecision.vsdesigner version 10.0.0.3300 on the server 2003. I have uninstalled microsoft .net 2005 and crystal reports and installed crystal first and visual studio .net 2005 next and vice versa but still could not see that particular assembly available in the windows 2003 server.
    Please suggest as what to do for the assembly to be available on the server so crystal report viewer control can be created with out error. Thanks for any help.

    Hello Sunitha,
    Visual Studios 2005 ships with a bundled edition of Crystal Reports.  This bundled edition is based on the v10 code stream, but it is not CR10.  It's CR.NET for Visual Studios and it's v10.2. Crystal Reports 10.0 and the bundled CR.NET 10.2 for VS2005 are not interchangeable.
    The stand alone version of Crystal Reports 10 is not expected to integrate correctly into VS2005.  If you have CR10 Developer installed on your VS2005 machine you can force VS2005 to use the CR10.0 assemblies, but it is not supported.
    You need to clean up your application so that it's referencing the 10.2 version assemblies and then deploy the 10.2 runtime files.  You can visit the [Crystal Reports for Visual Studio .NET Runtime Distribution - Versions 9.1 to 12.0|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/crystalReportsruntimeforVisualStudio.NET] Wiki for a nice overview of the various versions of Crystal Reports, as well as a listing of the runtime files to match the version of Crystal Reports that is being used.  For VS2005 and bundled CR.NET look at the "CR 10.2 (VS .NET 2005)" section of the Wiki.
    Sincerely,
    Dan Kelleher

  • Crystal Report Print Control install error

    Hi,
    I'm trying to manually install the crystal report print control active x file. After righ-clicking to install the printcontrol.inf file, i got the following error message; "The INF you selected does not support this method of installation" Any idea why I could not install?
    I am running Windows Vista and have local admin rights.
    Thanks in advance.

    Umm, when I enter the following search terms in the search box at the top right corner of this web page:
    print control activex crystal net
    I get the following KB:
    [1645006  - How to install the Crystal Reports ActiveX Print Control manually?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633343335333033303336%7D.do].
    See if that helps. Note that since you do not mention version of CR, the KB may not be specific to your version of CR, but it should point you in the right direction, no matter what the version.
    - Ludek

  • I couldn't use Crystal Report Viewer Control in my ASPX page.

    Please I'm having a problem with crystal report viewer control which I couldn't resolve. I'm using VS 2008 and Framework 3.5.
    I building an ASP web application and when I add a CrystalReportViewer to my ASPX page I'm getting the following
    error.
    "Error     20     Type 'CrystalDecisions.Web.CrystalReportViewer' is not defined."
    I think maybe because I'm not having the right reference file. I'm using Crystal Reports 2008 and also I installed the following
    Service Packs:
    cr121_redist_install
    CR2008-SP1
    CR2008SP1-Fixes 1 and 2
    cr121_clickonce
    I check all the reference files in my project and they are as follow:
    CrystalDecisions.CrystalReports.Engine  (12.0.2000.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.CrystalReports.Engine.dll
    CrystalDecisions.Enterprise.Framework  (12.0.1100.0)
    C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.Framework.dll
    C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.InfoStore.dll  (12.0.1100.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.ReportSource.dll  (12.0.2000.0)
    C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.Shared.dll  (12.0.2000.0)
    Please Why I'm getting this problem? How I can resolve it?
    Thanks.

    If you have a viewer on one of your forms, delete it off the form and re-add it, ensuring that the crystalreports.web assembly referenced in your project is version 12.
    Ludek

  • Problem in crystal report viewer control's toolbar "export"button using SSL

    Hi,
    I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
    u201CInternet Explorer cannot download file from server.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
    Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
    Anyone can help ???
    Thanks

    In Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
    Default is to have that option checked. 
    It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later).  So more recent versions of IE implemented that option setting.
    How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type.  So the application tries to open a directory path to a non-existing file.
    Issue is specific to IE, and it's not something you can control via the SDK.
    Sincerely,
    Ted Ueda

  • Crystal report 9 memory error.

    we are using crystal report 9 with sybase power builder..... at some client locations we are experiencing the application crash due to memory while opening crystal reports.
    the following errors were noticed
    1.the instruction at "0x77124804" referenced memory at "0x001b3e60". the memory could not be read.
    2.the instruction at "0x7c911daf" referenced memory at "0x00000000". the memory could not be read.
    please guide us what is the issue.. do we need any hotfix or service pack for this.
    regards

    I assume you already tried to reinstall the application and I would recommend to do it one more time, but this time follow the process for so-called manual uninstall
    1. Uninstall Crystal reports 9 using add remove programs
    2. Save backup -up of the Registry
    3. Remove the following registry key (be careful with the registry file):
    HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports
    4. Reinstall Crystal Reports 9
    As the next step I would check and disable Data Execution Prevention.
    Go to: Start> Right-click My Computer" select Properties> Advanced tab > click Performance settings> Data Execution Prevention tab.
    If DEP turned on for all programs, then add Crystal Reports (crw32.exe) to except list.
    If DEP is not cause of problems, then I would suggest Process Monitor to locate the reason or at least try to locate it.
    You can download Process Monitor utility from the following page:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    The same page will tell you how to use it. I would suggest the following steps:
    Close all unnecessary applications/processes
    1. Open Crystal Reports
    2. Start the Process Monitor, stop capturing events (Cntrl-E), clean the display (Cntrl-X), add the following filter (Cntrl-L) "Process Name is crw32.exe then include", click ok.
    3. Start capturing events (Cntrl-E)
    4. Immediately click Format menu on Crystal Reports
    5. Stop capturing events and save the log file
    Now you can look at the log file to see what is going wrong. I would also advice to capture the same log on client machine to compare the sequence of events.
    Gracias...!!

  • Fonts are not diplayed correctly in the Crystal Report Viewer control

    Post Author: Farid
    CA Forum: General
    Hello,
    I have designed a report in the Crystal Reports XI Designer (version 11.5.3.417) using the default printer. When I view it through the preview mode of the Designer, fonts are displayed like expected using the default printer driver.
    Now, I view this same report at run time in the Crystal Report Viewer control on the same computer with the same default printer. Fonts appear then differently they were in the preview mode : sizes are differents and some texts are truncated. It seems that the default printer driver are not used.
    Can anybody tell me if this behaviour is normal ? If it is the case how should I do to display a report in the Report Viewer using the default printer driver like I have specified it in the Designer.

    Post Author: V361
    CA Forum: General
    You may want to select the "no Printer" option instead, this will force CR to use a higher resolution.  Look in page setup, printer options.

  • Seagate Crystal Reports ActiveX Designer error '80043ac4'

    Website slows down when users are running reports. Users start getting errors when running any crystal report. After sometime main page itself stops loading and only static html is visible. Following is one of the errors users see:
    Seagate Crystal Reports ActiveX Designer error '80043ac4'
    Invalid directory.
    /opera_mort2/report/AlwaysRequiredSteps.asp, line 54
    Other errors seen on reporting site at that time are
    Active Server pages error 'ASP 0115'
    Unexpected error
    /opera_mort2/report/rpt_level.asp
    A trappable error (C00000005) occurred in an external object. The script cannot continue running.
    authentication and network errors.
    Rebooting the Web Server temporarily fixes the issue however the error recurs again after a day or two. We are seeing this problem in both our PROD and DR server. There was no change done to either of these boxes recently.
    Also at this pint IIS was crashing. Microsoft Support analyzed the crash dumps created from IIS and came up with the following:
    "All the memory dumps captured showed the same DLL that was accessing corrupted memory. This same DLL would also be the one that had originally written to those addresses. The DLL was craxdrt.dll from Crystal Reports 8.0 ActiveX Designer, which was version 8.0.1.0 from 1/28/2000. This DLL should be updated to see if this issue has already been fixed. Other options are to recycle IIS more frequently and move to a new version of Crystal Reports."
    Here is a detailed analysis from Microsoft Support:
    The issue appears to be heap corruption. Normally these are difficult to troubleshoot, however, in this case every memory dump that I looked at had the same component involved.
    start end module name
    42b30000 4307f000 craxdrt (export symbols) craxdrt.dll
    Loaded symbol image file: craxdrt.dll
    Image path: C:\Program Files\Seagate Software\Report Designer Component\craxdrt.dll
    Image name: craxdrt.dll
    Timestamp: Fri Jan 28 15:16:46 2000 (3892235E)
    CheckSum: 0055446A
    ImageSize: 0054F000
    File version: 8.0.0.371
    Product version: 8.0.1.0
    File flags: 22 (Mask 3F) Pre-release Special
    File OS: 40004 NT Win32
    File type: 2.0 Dll
    File date: 00000000.00000000
    Translations: 1009.04b0
    CompanyName: Seagate Software, Inc.
    ProductName: Crystal Reports 8.0 ActiveX Designer.
    InternalName: CRAXDRT
    OriginalFilename: CRAXDRT.DLL
    ProductVersion: 8.0.1.0
    FileVersion: 8.0.0.371
    PrivateBuild: 8.0.0.371
    SpecialBuild: 8.0.0.371
    FileDescription: Crystal Reports ActiveX Designer Runtime Support
    LegalCopyright: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
    LegalTrademarks: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
    Comments: Crystal Reports for Visual Basic
    This component is from the year 2000 and needs to be updated. I searched our old cases and found several where old version of this component caused the same heap corruption.
    Please help as this is a production issue. Please let me know if you need any more information.
    thanks and regards
    sudatta soman

    Something must have changed. Were any patches or auto updates done to the OS?
    CR 8.0 has been out of the support cycle for some time now.
    As Microsoft suggested please log in and download the patches for CR 8.0 from:
    https://www.sdn.sap.com/irj/sdn/businessobjects-support
    If that does not resolve the issue the only option will be to schedule sn IIS restart each night.

  • Problems starting Crystal Reports Page Server and Report Application Server

    Hi,
    We have migrated to a new server and I have re-installed our Crystal Reports Server XI R1.
    It is being installed on a Windows 2003 SBS Premium Server with MSSQL 2005 Workstation Edition
    I have been told that I need to start the following Crystal services after installation.
    1) Crystal Reports Page Server
    2) Report Application Server
    These services simply wont start
    When I try to start Crystal Reports Page Server, I get a Visual Studio Just-In-Time Debugger window that says...
    An unhandled Win32 exception occured in pageserver.exe [14892], subsequently, another window pops up [svrmgr] that says
    "The service did not respond to the start or control request in a timely fashion"
    Also, when I try to start the Report Application Server, I get another VS JIT debugger window that says
    An unhandled win32 exception occurred in crystalras.exe [12748]
    I also get the same SvcMgr Window that says..."The service did not respond to the start or control request in a timely fashion"
    Thanks all
    Paul

    Hello Paul,
    I recommend to post this question to [the dedicated BusinessObjects Enterprise Administration forum|BI Platform;.
    That forum is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Thanks
    Falk

  • Crystal Reports version 10  error when displaying report

    Hello: New member here, been lurking around for a while. A lot of good information here.
    I do hope this is the right place to ask this first question.  I have a customer that has a Crystal Reports 10 installation and cannot display reports since he upgraded from Crystal report 8 to Crystal reports 10
    The error he gets is pop message:
    CRAXDT error Occurred on Server Error Number: -2147221005 Error description: 006ASP 0177Server
    CreateObject Failed~800401f3
    Connection to the database is good we checked with query using SQL.
    Let me know what you think I should check next.
    I appreciate it.
    Thanks
    Damon

    1212487 - Error: "CRAXDRT Error Occured on Server. Error Number:-2147221005"
    Symptom
    A report is called through the Active Server Pages (ASP) Report Server to be displayed in the Report Viewer for ActiveX. However, the report is displayed with blank pages and when the viewer is switched to the Report Viewer for HTML the following error is displayed:
    "CRAXDRT Error Occurred on Server. Error Number:-2147221005 Error Description: 006ASP 0177 Server.CreateObject Failed~Invalid Class String"
    The same ASP application returns the report correctly when it is called from a client computer with the full version of Crystal Report 8 Developer Edition installed.
    Resolution
    It was found that the file, Emfgen.dll, was not installed and registered on the web server computer during the installation of the Crystal Reports ASP Reports Server. The report could be displayed correctly on the client computer, without Crystal Reports Developer Edition installed, after this file had been installed on the web server computer.
    For more information on installing the Crystal Reports web components please search for and download Scr8_WebManualInstall.zip from our website at:

  • Embeddable Crystal Reports Designer Control and Visual FoxPro

    Post Author: PaulBtci
    CA Forum: Other
    Hello everyone, I have a problem adding CRXI Embeddable Crystal Reports Designer Control in the run-time. When the following line is being executed, an "Insert Object" dialog pops up. ThisForm.AddObject( "oleDesigner", "olecontrol", "CrystalReports.EmbeddableCrystalReportsDesignerCtrl" ) The control, however, is available in the list, and when selected is added to the form. The above problem does not exist when I add ActiveX ReportViewer. Can anyone help me with this issue? Any help is greatly appreciated. Thanks, Paul

    Good morning,
    I am using  "Embeddable Crystal Reports Designer Control"  Crystal Report 11 with Visual Basic 6.0.
    There is some way for disable the tab "preview the main report"? THis is including in "Embeddable Crystal Reports Designer Control"
    or
    There is some way for update the tab "preview the main report" loaded after other report? Because, the preview is not refresh.
    Thanks
    Buenos días,
    Les comento, estoy utilizando el control "Embeddable Crystal Reports Designer Control" (CRDesignerCtrl11_5) del Crystal Report 11 en un proyecto de Visual Basic 6.0
    Cuando cargo un reporte dos veces, se presenta la "vista previa de informe principal".  Sin embargo cuando vuelvo a cargar otro reporte no se actualiza la "vista previa de informe principal" sino que se queda con la información cargada anteriormente.
    Quisiera saber si existe una forma de acceder al control para actualizar la "vista previa de informe principal", ya que a pesar de dar clic derecho y elegir actualizar no toma los datos del nuevo reporte cargado.
    Y si es posible en todo caso desabilitar la "vista previa de informe principal" o hacerlo invisible para que únicamente se presente la pestaña de "Informe Principal".
    De antemano agradezco su ayuda.

  • Crystal Reports: Print Engine Error when exporting a report

    We recently upgraded from Crystal Reports 2008 to BusinessObjects Edge Series X3.1. When exporting a report to an excel data-only format we get "Crystal Reports: Print Engine Error". All other formats work fine.  Any help is highly appreciated.
    Thanks,
    Jaseem

    Anyone?

  • Crystal report viewer version error

    Now I am tring to call reports in crystal reports server by asp.net.  My server is crystal reports server xi, and for develop I also installed crystal report server client-side part on my develop machine, and crystal reports xi designer xi,r2.
    My program is to call the rpt files on server and show them by CrystalReportViewer control, however I get the error message below:
    Parser Error Message: The base class includes the field 'CRViewer', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).
    Source Error:
    Line 10:     <form id="form1" runat="server">
    Line 11:     <div>
    Line 12:       <CR:CrystalReportViewer ID="CRViewer" runat="server" AutoDataBind="true" />
    Line 13:     </div>
    Line 14:     </form>
    My code is:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CRSTest._Default" %>
    <%@ Register assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <CR:CrystalReportViewer ID="CRViewer" runat="server" AutoDataBind="true" />
        </div>
        </form>
    </body>
    </html>
    code behind:
               ReportDocument rd = new ReportDocument();
               string sampleReportName = "MyTest";
                SessionMgr sessionMgr = new SessionMgr();
                EnterpriseSession enterpriseSession;
                EnterpriseService enterpriseService;
                InfoStore infoStore;
                InfoObjects infoObjects;
                InfoObject infoObject;
                ReportAppFactory reportAppFactory;
                // Logon to an Enterprise session.
                  enterpriseSession = sessionMgr.Logon("Administrator", "1Qaz2wsx", "MOSSDEV-COYD:6400", "secEnterprise");
                // Query for the sample report from the Enterprise CMS.
                enterpriseService = enterpriseSession.GetService("InfoStore");
                infoStore = new InfoStore(enterpriseService);
                infoObjects = infoStore.Query("Select SI_CUID From CI_INFOOBJECTS Where SI_NAME='" + sampleReportName + "' And SI_INSTANCE=0");
                infoObject = infoObjects[1];
                string reportCUID = infoObject.CUID;
                rd.EnterpriseSession = enterpriseSession;
                rd.FileName = "cecuid:///" + reportCUID;
                rd.SetDatabaseLogon("sqluser", "123456", "172.31.69.90", "AVIS_FMIS");
                CRViewer.ReportSource = rd;
    I check my assembly folder, I found three CrystalDecisions.Web dlls with different version, 11.5.3700.0, 11.5.3300.0, 10.5.3700.0, I try to refer to 11.5.3700.0 it says there is two CrystalDecisions.Web ddls exist in GAC.
    Could you tell why? and how to refer to the right dll?
    Thanks in advance

    11.5.3700.0, is CrystalDecisions.Web.dll for XIR2 and the 2.0 framework
    11.5.3300.0, is CrystalDecisions.Web.dll for XIR2 and the 1.1 Framework
    10.5.3700.0, is CrystalDecisions.Web.dll for Crystal reports basic that ships with Visual Studion2008
    all of these can co-exist in the GAC, so that part is fine.  The problem is that you most likely have multiple references to CD.Web.dll in the config file of your application... IE an additional reference was added to the <add assembly..../> tag in your web.config.
    delete all <add assembly ../> tags from web.config except the one adding 11.5.3700.0
    If you have more than one project in your solution, make sure there are no other versions of CD.Web.dll in those projects as well.

  • Crystal Reports Viewer Control  - Visual Studio 2008 WEB Application

    My question is this:  Has ANYONE on this planet been able to get the ASP .NET CR Viewer control to actually work?
    Why does this editor NOT recognize End-of-line or CR characters or any whitespace??
    I have developed a Crystal Reports "Viewer" web application in VS2008 using C#.
    It's a simple app, in that it's a single page with a treeview control (containing the grouped names of the reports to which the user has access) and the CR Viewer control.
    The report files live on a network share, and permissions to them is controlled via a SQL Server database, which, for each report, stores the UserID and Logion for the oracle database, as well as any required parameter values.
    The reports themselves are all hititng an Oracle 10g database.
    I managed to do this in a Windows desktop applcation using Visual Studio 2005 and VB .net, but now, upon trying to make this a web application in VS2008, I have completely failed. The application works when run locally, but when deployed to the web server, I experience database login prompts when I should not, (the dreaded "Report requires further information" message) even thought the setdatabaselogin has already been set. I have tried saving the reportdocument in viewstate and re-assigning the viewer Datasource property to it, that also fails. However, it only does it on some reports, and not others. (admittedly, the reports may have been created using different CR versions)
    The viewer also displays data it should not be displaying when I attempt to scroll, when I do manage to get a report to run.
    I am setting parameters dynamically at run time, whose values are stored in the SQL database.
    Code Sample:
    protected void ShowReport(int ReportID)
            SQLDataPortal2005.Common sql = new SQLDataPortal2005.Common();
            Hashtable outParms = new Hashtable();
            string sAccess;
            IDataReader dr;
            CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
            sAccess = p.Identity.Name;
            int j = 0;
            int i = -1;
            if (!IsAdmin())
                sql.ExecNonQuery("CrystalReports", outParms, "proc_CRM_Check_Permissions", sAccess, Convert.ToInt32(TreeView1.SelectedNode.Value));
                if (outParms["@Allow"].ToString() != "True")
                   Response.Redirect("ErrorPage.aspx");  // redirect to  error page
            string sPath = System.Configuration.ConfigurationManager.AppSettings["WareHouse"].ToString();
            sPath = sPath + TreeView1.SelectedNode.Text.Trim() + ".rpt";      
            rptDocument.Load(sPath);
            dr = sql.GetDataReader("CrystalReports", "proc_CRM_Get_Report", Convert.ToInt32(TreeView1.SelectedNode.Value));
            while (dr.Read() == true)
                j += 1;
                if (j < 2)
                    rptDocument.SetDatabaseLogon(dr["DB_Login"].ToString(), dr["DB_Pwd"].ToString(), "PLAW", "LAWDB", true);
                    pList = dr["ParmList"].ToString().Split(',');
            dr.Close();
            dr.Dispose();
            if (pList.Length > 0 && pList[0].ToString().Trim() != "")
                foreach (CrystalDecisions.Shared.ParameterField x in rptDocument.ParameterFields)
                    i++;
                    switch (x.ParameterValueType)
                        case CrystalDecisions.Shared.ParameterValueKind.BooleanParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToBoolean(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.CurrencyParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDouble(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateTimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.NumberParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToInt32(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.StringParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToString(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.TimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
            Session["CReport"] = rptDocument;
            CRV1.ReportSource = rptDocument;
            CRV1.DisplayGroupTree = false;
            CRV1.HasRefreshButton = true;
            CRV1.ShowFirstPage();
    Is there a better/different way of accomplishing this very simply process? All I need this application to do is to view a report, while setting it's parmeters (if required) dynamically at run time. I don't EVER want the user to be prompted for DB LOGIN INFO.
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:16 PM
    Edited by: RichardK on May 10, 2010 4:18 PM
    Edited by: RichardK on May 10, 2010 4:22 PM
    Edited by: RichardK on May 10, 2010 4:23 PM

    To answer you question; Yes, I suspect that most of the users in this community have managed to successfully create web apps. And this is the tiniest of sampling of the developers out there...
    A few suggestions;
    1) Keep the posts to under 1200 characters. Otherwise, the formatting is lost which makes it difficult to read.
    2) Try out a few sample apps from here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Suggest; csharp_web_simplelogonengine.zip, csharp_web_simplelogonviewer.zip and csharp_web_subreport_logon.zip.
    3) Start simple; one table, one field, no subreports. Hard code the database logon parameters. Convince your self that this does work. Increase the complexity - add fields, tables, subreports. Do not mix connection methods (e.g.; if ODBC for main, than ODBC for sub is a good idea, though not a requirement).
    4) See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
    5) See  [this|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true] article.
    6) Consider creating a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Crystal Reports 2008 runtime error while running on Windows Server X64

    I have a .NET web application compiled as X86 in Visual Studio 2008 invoking Crystal Reports 2008 SP2 that's running fine at a number of sites running Windows Server 2003 X86.</br>
    </br>
    When deploying this app to Windows Server 2008 X64 I get the error message below. </br>
    </br>
    I'm aware that there is an unanswered question similar to this already in the forum but my application is compiled for X86 and I've tryed installing a variety of run times including "crruntime_12_2_mlb.msi" and "crredist2008_x86.msi".</br>
    </br>
    What combination of compile and run time is needed to get around this issue?</br>
    </br>
    Thanks.</br>
    </br>
    </br>
    ERROR MESSAGE **.</br>
    </br>
    An error has occurred while attempting to load the Crystal Reports run time..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information.
    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. .</br>
    </br>
    Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information..</br>
    </br>
    Source Error: .</br>
    </br>
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  .</br>
    </br>
    Stack Trace: .</br>
    </br>
    [LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +399.</br>
       CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +218.</br>
    </br>
    [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.].</br>
       CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0.</br>
       ChartsEnterprise.UI.GenReport.CreateReport(String reportname) +42.</br>
       System.EventHandler.Invoke(Object sender, EventArgs e) +0.</br>
       System.Web.UI.Control.OnLoad(EventArgs e) +132.</br>
       System.Web.UI.Control.LoadRecursive() +66.</br>
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean .</br>includeStagesAfterAsyncPoint) +2428.</br>
    Edited by: PSernz on Mar 25, 2010 3:58 AM

    What combination of compile and run time is needed to get around this issue?
    See [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki. I think I may not have that wiki updated up to FP2.5, so the FP2.5 msm is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100002975182010E/cr2008fp25_mm.zip
    msi is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100002975312010E/cr2008fp25_redist.zip
    Check the version of the CR assemblies referenced in your project. The use the wiki above to deploy the correct runtime.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • Function Modules Used in BW?  (Two Questions)

    I have two function Modules that were used in SAP R3: G_SET_GET_ID_FROM_NAME G_SET_GET_ALL_VALUES G_SET_TREE_IMPORT Question 1) Are there cross referenced FMs in BW that we can use in place of these? Question 2) Is here a XREF lift of Cross-Functiona

  • Does apple TV dim after awhile?

    I haven't had much time to troubleshoot this, but I've noticed that at times, my screen gets dimmer when using Apple TV. About halfway through a movie last night this occurred, and again shortly after. Is there a setting in Apple TV that would cause

  • SAP standart window modification

    Hello! I have to modificate standart SAP window(add Search Help). How can I do it?

  • Grub error after install Arch x86_64

    i install arch on my second laptop and everything works fine so im install on my main laptop but grub can boot my main laptop have 2 HDD, first i have windows seven and other partions on second i have arch64 at install no errors are show but when i r

  • IPod changing pictures when rotated

    I have this strange issue, where when I am viewing pictures & try to use the accelerometer to rotate the picture it changes the picture to someother one. Here is a video of the issue in action http://www.youtube.com/watch?v=XQWkunxgcQs http://www.you