Crystal report viewer 2.0.23 access denied

Post Author: gionnyDeep
CA Forum: General
hi all
I'm using CR viewer 2.0.23 in a java standalone apllication.Actually whe i try to open a CR XI report with CR viewer 2.0.23 i get Access denied.
It look like CR viewer does not fetch login information to database by the report.
I found a work aroud but sometimes works and sometimes does not! I set for each table of my report db login and db password as follow:
DatabaseController dc= rc.getDatabaseController();                Tables tables = dc.getDatabase().getTables();                for (int i = 0; i < tables.size(); i++) {                                 ITable table = tables.getTable(i);                    IConnectionInfo connectionInfo = table.getConnectionInfo();                                         String userName=table.getConnectionInfo().getUserName();                    String password=table.getConnectionInfo().getPassword();                                      connectionInfo.setUserName(userName);                    connectionInfo.setPassword(password);                                        connectionInfo.setKind(ConnectionInfoKind.SQL);                    table.setConnectionInfo(connectionInfo);                    dc.setTableLocation(table, tables.getTable(i));                                     } 
The problem is that it works just with reports created with CR XI.If i use a report created with CR 9 or 10 and i save this report with CR XI.And after that i open my report in CR viewer 2.0.23 sometimes it works sometimese does not.I got Access denied!!!!

Post Author: gionnyDeep
CA Forum: General
hi all
I'm using CR viewer 2.0.23 in a java standalone apllication.Actually whe i try to open a CR XI report with CR viewer 2.0.23 i get Access denied.
It look like CR viewer does not fetch login information to database by the report.
I found a work aroud but sometimes works and sometimes does not! I set for each table of my report db login and db password as follow:
DatabaseController dc= rc.getDatabaseController();                Tables tables = dc.getDatabase().getTables();                for (int i = 0; i < tables.size(); i++) {                                 ITable table = tables.getTable(i);                    IConnectionInfo connectionInfo = table.getConnectionInfo();                                         String userName=table.getConnectionInfo().getUserName();                    String password=table.getConnectionInfo().getPassword();                                      connectionInfo.setUserName(userName);                    connectionInfo.setPassword(password);                                        connectionInfo.setKind(ConnectionInfoKind.SQL);                    table.setConnectionInfo(connectionInfo);                    dc.setTableLocation(table, tables.getTable(i));                                     } 
The problem is that it works just with reports created with CR XI.If i use a report created with CR 9 or 10 and i save this report with CR XI.And after that i open my report in CR viewer 2.0.23 sometimes it works sometimese does not.I got Access denied!!!!

Similar Messages

  • Open programatically Crystal Report Viewer XI from MS Access 2003

    Thank you in Advance!!!
    I got the following VBA code.
    1) What library do I need to include to access Crystal Report Viewer XI?
    2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
    Please look at ***???
    Dim crrpt As New CRAXDRT.Report
    Dim crapp As New CRAXDRT.Application
    ***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
    Dim myParamField As CRAXDRT.ParameterFieldDefinition
    Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
    Dim dtFirstDayOfYear As Date
    Dim dblCreditUsed, dblYTDAmount As Double
    Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
    Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
    'Set db = CurrentDb
    strAttachDir = "T:\Work\"
    'open crystal report(rpt)
    strReportDir = "T:\Work\"
    strCrReport = "TimeDetailwithData.rpt"
    Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
    strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
    strAttachment = strAttachDir & strFileName
    crrpt.DiscardSavedData
    'SET PARAMETER FIELDS
    Set myParamFields = crrpt.ParameterFields
    For Each myParamField In myParamFields
    With myParamField
    Select Case .ParameterFieldName
    Case "StartPeriod"
    .SetCurrentValue CDate("2008-7-16")
    Case "EndPeriod"
    .SetCurrentValue CDate("2008-7-17")
    Case "Org - Comp"
    .SetCurrentValue "2WV"
    Case "Org - Dpt"
    .SetCurrentValue "300"
    Case "Org - Fac"
    .SetCurrentValue "01302"
    End Select
    End With
    Next
    crrpt.EnableParameterPrompting = False
    crrpt.ExportOptions.FormatType = crEFTCrystalReport70
    crrpt.ExportOptions.DestinationType = crEDTDiskFile
    crrpt.ExportOptions.DiskFileName = strAttachment
    crrpt.Export False
    Set CRViewer11 = crapp.OpenReport(strAttachment)
    ***???Problem here: CRViewer11.ReportSource = strAttachment
    ***???Problem here: CRViewer11.ViewReport

    You will have to use the Crystal Reports Report Designer Component (craxdrt.dll). Before you do however, it may be good to know that CR XI r2 is the last version of CR that includes the craxdrt.dll as this is considered to be a retired technology in CR 2008. This may impact your efforts as the life cycle of the app may be limited(?).
    Here is a link to more details of the  RDC lifecycle:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289
    A bit of code help:
    https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
    A note on connecting to databases:
    https://smpdl.sap-ag.de/~sapidp/012002523100006008462008E/crxir2.zip
    Help file:
    rdcsdk_com_dg.chm
    C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
    dcsdk_com_dg_docdoc
    Ludek

  • Crystal Report Viewer Not Releasing Oracle Database Connections

    I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
    1. Reports are built by another company and provided to us and used in a web environment
    2. All reports contain parameter fields
    3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
    4. All reports connect to an Oracle 10g server.
    The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
    The web application code is:
    Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
    ConfigureCrystalReport()
    End If
    End Sub
    Private Sub ConfigureCrystalReport()
    'Load the Crystal Report viewer with a report.
    Try
    Dim reportPath As String = Server.MapPath(Session("reportname"))
    crViewer.ReportSource = reportPath
    Catch ex As Exception
    Response.Write(Server.MapPath(Session("reportname")) & "
    " & ex.Message.ToString & "
    " & ex.StackTrace.ToString)
    End Try
    End Sub
    Can anyone shed some light on this topic? Thank you

    Hello, Timothy;
    By default, having the report in session will hold it open for 20 minutes.
    If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
        Private Sub ConfigureCrystalReports()
            If (Session("hierarchicalGroupingReport") Is Nothing) Then
                hierarchicalGroupingReport = New ReportDocument()
                hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
                Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
            Else
                hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
            End If
            myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
        End Sub
    In the Form Unload of the Viewer:
                'Take the report out of session
                Session("hierarchicalGroupingReport")  = Nothing
                Session.Contents.Remove("hierarchicalGroupingReport")
                'Clean up the ReportDocument object
                hierarchicalGroupingReport.Close
                hierarchicalGroupingReport.Dispose()
                hierarchicalGroupingReport = Nothing
                GC.Collect()
    Elaine

  • Crystal Report Viewer and Windows Vista

    Hi,
    We are using RDC methodology for launching the crystal reports in the web using ASP.
    The web server operating system is Windows 2003, Crystal Reports XI is installed in it.  Report is not launching in only one client machine.  For all the other client machines reports are launching perfectly.  The problem is blank white activex control is displayed.  I tried to register the crystal reports viewer (ActiveXViewer.cab available in the crystal installation folder) deliverables in the client machine but after installing the deliverables same problem persists.
    When I click on the Crystal Report viewer Internet Explorer Exception occurs
    The following add-on was running when this problem occurred:
    Add-on Name:      CRViewer.dll
    Company Name:      (Not verified)Business objects
    Description:                           Crystal Report Viewer
    Two buttons
    Advanced... and Continue are shown but when we click on the button IE crashes
    The client machine operating system is u201CWindows Vistau201D service pack 2
    Internet Explorer 7 version is installed in it.
    In the client machine event viewer log the following details are available.
    Log Name:      Application
    Source:        Application Error
    Date:          10/29/2010 9:18:35 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      BillVista.toyalloc.local
    Description:
    Faulting application iexplore.exe, version 7.0.6002.18005, time stamp 0x49e01e78, faulting module CRViewer.dll, version 11.0.0.893, time stamp 0x41b6ac85, exception code 0xc0000005, fault offset 0x0001f8e7, process id 0x210, application start time 0x01cb7773d2b1c584.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-29T14:18:35.000Z" />
        <EventRecordID>98684</EventRecordID>
        <Channel>Application</Channel>
        <Computer>BillVista.toyalloc.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>iexplore.exe</Data>
        <Data>7.0.6002.18005</Data>
        <Data>49e01e78</Data>
        <Data>CRViewer.dll</Data>
        <Data>11.0.0.893</Data>
        <Data>41b6ac85</Data>
        <Data>c0000005</Data>
        <Data>0001f8e7</Data>
        <Data>210</Data>
        <Data>01cb7773d2b1c584</Data>
      </EventData>
    </Event>
    Could any one help me regarding this.

    Hello,
    First thing to do is upgrade to [CR XI R2 SP4 full build|https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe]. Then get up to Service Pack 6 and you should not have problems with Vista.
    CR XI R1 will not and has never been tested on that OS.
    If you do not want to upgrade though use Process Monitor to watch for Access Denied errors. Also run IE in Compatibility mode.
    Likely what is happening is your test PC doesn't have rights to install ActiveX controls.
    Thank you
    Don

  • Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise o

    Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you.
    == This happened ==
    Every time Firefox opened
    == Crystal Report Viewer (flash based) is displaying partial of the flash interface. It is working well on Firefox 3.6.7 and below but not in Firefox 3.6.8. It is also working well on Internet Explorer and Chrome and Safari. Please check if you can advise on this problem we are facing. Thank you. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can try if it works if you disable OOPP (Out-Of-Process-Plugins) for Flash
    You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
    dom.ipc.plugins.enabled (currently false by default)
    dom.ipc.plugins.enabled.npswf32.dll (Flash)
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Crystal report viewer does not observe the PaperSize and PageOrientation setting

    Hi:
    My application is a 3 tier application, where the WinForm client is connected to the WCF Services hosted in IIS server.
    The report is generated on server side using WCF service, and export as.rpt with data, the .rpt file is then sent to the WinForm client, the Crystal Report viewer is used to load the .rpt file for preview and print.
    On server side I've Microsoft XPS Document Writer installed and set as default printer. On the client side if the default printer is XPS or Nitro PDF creator, the report can be view and print correctly, report design in landscape will be able to show in the landscape in CR viewer, report design using custom paper size (e.g. Half Letter), CR viewer able to show it in Half Letter.
    The problem that I'm facing is when the default printer is set to HP LaserJet P1120 or others (I've tried Epson ESC/P Standard driver), the report is always shown in the portrait, and it will not be able to show in custom paper size either. Here is my code:
         Dim settings As New System.Drawing.Printing.PrinterSettings
         Dim rep as New ReportDocument
         rep.Load(sOutputFileName)     'The report is download from server and save in sOutputFileName
         SetReportPaperSize(rep, sPaperSizeName, False, settings) ' sPaperSizeName store the name of the custom paper used in the report
         CrViewer.ReportSource = rep
       Public Shared Sub SetReportPaperSize(rep As ReportDocument, paperSizeName As String, isHardCopy As Boolean, settings As Printing.PrinterSettings)
          Dim installedPrinters As Printing.PrinterSettings.StringCollection = Printing.PrinterSettings.InstalledPrinters
          Dim printers As New List(Of String)
          Dim sPrinter As String
          If installedPrinters.Count = 0 Then
             Return
          End If
          SetPrinterDefaultPaperSize(rep.PrintOptions, paperSizeName, settings)
          With rep.PrintOptions
             .PrinterName = settings.PrinterName
             .PaperSource = PaperSource.Auto
             If paperSizeName.Trim.Length > 0 Then
                .PaperSize = DirectCast(GetPapersizeId(paperSizeName, settings, rep.PrintOptions.PaperSize), CrystalDecisions.Shared.PaperSize)
             End If
          End With
       End Sub
       Public Shared Sub SetPrinterDefaultPaperSize(printOptions As PrintOptions, paperSizeName As String, settings As Printing.PrinterSettings)
          With settings.DefaultPageSettings
             If paperSizeName.Trim.Length = 0 Then
                . PaperSize = GetPaperSize (printOptions.PaperSize, settings)
             Else
                For Each size As Printing.PaperSize In settings.PaperSizes
                   If size.PaperName.EqualsTo(paperSizeName) Then
                      .PaperSize = size
                      Exit For
                   End If
                Next
             End If
             .Landscape = printOptions.PaperOrientation = PaperOrientation.Landscape
             .Margins.Top = printOptions.PageMargins.topMargin
             .Margins.Left = printOptions.PageMargins.leftMargin
             .Margins.Bottom = printOptions.PageMargins.bottomMargin
             .Margins.Right = printOptions.PageMargins.rightMargin
          End With
       End Sub
       Public Shared Function GetPaperSize(paperSizeId As Integer, defaultPrinterSettings As Printing.PrinterSettings) As Printing.PaperSize
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Printing.PaperSize
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          ' Default paper Size defined in the printer
          result = settings.DefaultPageSettings.PaperSize
          For Each size As Printing.PaperSize In settings.PaperSizes
             If size.RawKind = paperSizeId Then
                result = size
                Exit For
             End If
          Next
          Return result
       End Function
       Public Shared Function GetPapersizeId(paperSizeName As String, defaultPrinterSettings As Printing.PrinterSettings Optional defaultpaperSizeId As CrystalDecisions.Shared.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize) As Integer
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Integer = defaultpaperSizeId
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          If Not String.IsNullOrEmpty(paperSizeName) Then
             For Each size As Printing.PaperSize In settings.PaperSizes
                ' Height and Width in Printing.PaperSize is measure in hundredths of an inch
                If size.PaperName.EqualsTo(paperSizeName) Then
                   result = size.RawKind
                   Exit For
                End If
             Next
          End If
          Return result
       End Function
    Setting the PrintOptions.PaperSize and PageOrientation seem like no effect on the viewer. My code to load the report to CR viewer is much more complicated than the code I show above, I've a background worker thread to download the report, and when the worker thread finished download the report from the server, it will assign the report to CRViewer. Do the changes in report PrintOption before assign to CRViewe and after assigning to CRViewer make any different?
    I'm using VS2010, CR XI R2 (Version 11.5.3700.0). Please Help. Thanks
    Regards
    JC Voon

    Hi JC,
    CRXI R2 is a no go with VS 2010, these two are not compatible.
    With CR 11.5 use VS 2005.
    Or Use VS 2010 and CR for VS 2010 (13.0)
    Once you have the supported / compatible conbination of CR and VS, use the In Proc RAS .NET code from below KBA.
    http://search.sap.com/notes?id=0001561333&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031353631333333
    Also, see the KBAs returned by below search. The top right corner search box on this page is quite helpful.
    http://search.sap.com/ui/scn#query=crystal%252C+paper%252C+orientation%252C+.net%252C+sdk&startindex=1&filter=scm_a_site(scm_v_Site11)&filter=scm_a_modDate(*)&timeScope=all
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • 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 Report Viewer Not viwed - Through APP Server Re-Direction

    Hello Team
    I have a critical problem in my organizaion for viewing the reports.
    Configuration that we are using:
    1. Windows Server 2008 R2
    2. Crystal 13 - Server Trial Version - Expiring on Aug-25th, 2014
    3. Used Visual Studio 2010 - .NET
    4. IIS 7.0 - configured a  Virtual Directory for ASP.NET application
    Out Application is using an Oracle APP Server to view the HTML. A button is provided in the HTML to redirect to view the Crystal Report.
    when I click on the Hyperlink and the url is directly accessed, then the Report is being shown without any issue.
    But ours is a corporate application and we have given a provision of accessign this application when users are outside of network. Hence the Crystal Server is under fire-wall. So, I cannot access it directly with a URL. Hence the app server is configured in such a way that if it find a name like "Reports" in the URL, then it redirects to the actual Web Server and gets back the data to the browser.
    for URL redirection, the app server is configured as below
        ProxyPass /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers/
        ProxyPassReverse /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers
        ProxyPass /reports10/ http://<<ServerIP>>/reports10/
        ProxyPassReverse /reports10/ http://<<ServerIP>>/reports10
    When the user redirects from the APP server using those redirection rules, the pages are being executed but the final crystal report viewer control is not being shown on the browser. I am not sure if we need to perform any other steps to get these thigns done.
    Our server is behind fire-wall and whenever I am in network, I used to get the output but when the redirection happens not able to load the Crystal Report Viewer. Not sure, if there are any other security rules that I need to consider to get back the CrystalReportViewer.
    Also, there is something called CrystalReportInteractiveViewer prior to Crystal13. Do we have anything as such in Crystal 13 also? Please help me in getting this worked.
    Please let me know if I am not clear in my explanation and I can certainly provide you a better information based on your queries.
    Thanks
    -Srinivasa Nadella

    Hi Srinivasa,
    Please move this thread to SAP Crystal Reports, version for Visual Studio
    Helpful threads: Having issues with Crystal reports report viewer
    c# - Application level assembly redirection not working - Stack Overflow
    asp.net mvc - Why is my Crystal Report and Viewer invisible on a Web Form in an MVC application? - Stack Overflow
    Regards,
    DJ

  • Crystal report viewer from portlet

    Hi,
    I have a problem with opening Crystal report viewer from portlet. I am using Spring portletMVC but this doesnt matter in this case. After clicking some button a controller process form in method where is access to ActionRequest, ActionResponse. But how can I "redirect" with some parameters to plain JSP page where I can write something like this:
    CrystalReportViewer viewer = new CrystalReportViewer();
         viewer.setReportSource(rcd.getReportSource());
         viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
         viewer.dispose();
    Oh, perharps is understandable, sorry for my English and thanks for helping. Any code of link would be wonderful.

    I haven't worked with Crystal Reports in quite awhile, but in the past I've written code to launch Crystal Reports using OLE. If I recall correctly, there existed an ActiveX control that could be embedded into VB forms, and the like. I'm unsure, however, whether they continue to support this mechanism. Given that your requirements do not allow CLIENT_HOST or DDE, however, I am guessing that OLE automation would also be unacceptable.
    Have you looked at WEB.SHOW_DOCUMENT?
    Eric Adamson
    Lansing, Michigan

  • How can I get the View Tab name on the Crystal Report Viewer at runtime?

    When a report is displayed in the Windows Forms Crystal Report Viewer and the user drills into the report, the drill down view is displayed in a seperate view and is identified via a View tab at the top of the report.  I can determine the index of the view tab that is currently selected, but I need to access the text that is on the View tab.  The only properties that I've found that pertain to the "view" on the Crystal Report viewer are the ActiveViewIndex and the ViewCount.  Unfortunately, neither of these items help me because they are not specific to a certain section of the report.  Has anyone had any luck accessing the View Tab properties ?  Thanks.

    The tabs at the top of the page are nested within some of the viewers controls. Through trial and error you just have to find the right one. In this case the main part of the report is in the first control. This happens to be a TabControl. From there you can loop through the TabPages on the TabControl to grab the names of the tabs.
    Here is a quick example of what I did to get the tab text. All this code was in a button click event.
    Control oControl = crystalReportViewer1.Controls[0];
    TabControl oTabControl = (TabControl)oControl.Controls[0];
    foreach (TabPage oTabPage in oTabControl.TabPages)
         MessageBox.Show(oTabPage.Text);

  • Very slow loading time - Crystal Reports Viewer 2008

    Hi,
      I search this forum to find another thread regarding this issue.  Since I've found nothing in particular, I started this one.
      We are currently developping a new report engine based on the .Net Crystal Report Viewer. This engine will be used in our applications to show, print and export reports.  We based the engine on the Crystal Report 2008 version (12.0.2000).  The code is in C#, targeted on the Framework 3.5 SP1.  For the CR runtime, we tested on machines with the SP2 and SP3 versions, as well as on a computer with Crystal Report Developper installed (v12.3.0.601) with no runtimes.  Since the runtime is in x86 only, the engine is compiled in x86 (not ANY CPU)
      When we try to open a report in an application, the first report loading is unusally slower than the others.  If I open a report, close it and open it a second time, the second time is much faster than the first.  While reading the threads, I realized that the first load implies some assembly loading from the Framework (which is normal).
      But since i can take as long as 20-30 seconds to load the first report, I ran some test.  Using the System.AppDomain.CurrentDomain.AssemblyLoad event, I've tracked the assemblies being loaded when opening the report and the start time of the loading.  I've discovered that, while most of the CR assemblies takes less than 500 milliseconds to load, there is one that takes at least 3 seconds (20 seconds sometimes) to load : BusinessObjects.Licensing.KeyCodeDecoder.  Each time I ran the tests, it is the assembly that is the slowest (and by far) among them all.
      Prior to this, we were using Delphi with the Crystal Report 10 runtime.  We never had such issues.  Now, some customers are complaining about this behavior.
      For you information, we are using the ReportDocument.Load() method to load documents.  Our reports are all dynamically linked to the database with the DataSourceConnections.SetConnection() method.  The report is being loaded in the viewer using the CrystalReportViewer.ReportSource property.
      Why does it takes so long to load/execute ? Is there something implied with registry keys or Internet access ?  Is there a way to speed up things ?
      Thanks !

    Thanks for your help Don ! :o)
    I know that the CR10 runtime was built on win32 and while I knew that the .Net version of the runtime would be slower due to the Framework and .Net architecture, we did not expect such differences between the two methods.
    You are right that the hardware could play a great factor here, but since I work on this machine for a few years now and I saw the performance from the old CRPE32.dll and the new .Net counterpart, I am really surprised that there is such a difference.  Most of our customers have entry-level desktops and our application always ran well on it, until now.
    So, if it is the way that the CR 2008 runtime works, do you know if your developpers optimized this part with the next version (CR 2010) or it is based on the same engine ?
    Thanks again for your time !

  • Open programatically Crystal Report Viewer XI to display rpt file

    Thank you in Advance!!!
       I got the following VBA code.
    1) What library do I need to include to access Crystal Report Viewer XI?
    2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
        Please look at ***???
        Dim crrpt As New CRAXDRT.Report
        Dim crapp As New CRAXDRT.Application
    ***???Problem here:    Dim CRViewer11 As New CrystalActiveXReportViewer
        Dim myParamField As CRAXDRT.ParameterFieldDefinition
        Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
        Dim dtFirstDayOfYear As Date
        Dim dblCreditUsed, dblYTDAmount As Double
        Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
        Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
        'Set db = CurrentDb
        strAttachDir = "T:\Work\"
        'open crystal report(rpt)
        strReportDir = "T:\Work\"
        strCrReport = "TimeDetailwithData.rpt"
        Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
        strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
        strAttachment = strAttachDir & strFileName
        crrpt.DiscardSavedData
        'SET PARAMETER FIELDS
        Set myParamFields = crrpt.ParameterFields
        For Each myParamField In myParamFields
            With myParamField
                Select Case .ParameterFieldName
                        Case "StartPeriod"
                            .SetCurrentValue CDate("2008-7-16")
                        Case "EndPeriod"
                            .SetCurrentValue CDate("2008-7-17")
                        Case "Org - Comp"
                            .SetCurrentValue "2WV"
                        Case "Org - Dpt"
                            .SetCurrentValue "300"
                        Case "Org - Fac"
                            .SetCurrentValue "01302"
                End Select
            End With
        Next
        crrpt.EnableParameterPrompting = False
        crrpt.ExportOptions.FormatType = crEFTCrystalReport70
        crrpt.ExportOptions.DestinationType = crEDTDiskFile
        crrpt.ExportOptions.DiskFileName = strAttachment
        crrpt.Export False
        Set CRViewer11 = crapp.OpenReport(strAttachment)
    ***???Problem here: CRViewer11.ReportSource = strAttachment
    ***???Problem here: CRViewer11.ViewReport

    Hi, Rocio;
    In the future, please submit programming type questions to our SDK Forums.
    The component you are looking for is the Crystal Report Viewer Control x, where x is your version of Crystal Reports.
    You can also browse to the file, it is crviewer.dll.
    Regards,
    Jonathan

  • Crystal Report Viewer Control 11.5

    I have Crystal 2008 but I need to be able to use the Crystal Report Viewer when viewing reports through a website.
    I have the activex in my AddOn Manager but when I view the files in my Downloaded files folder the viewer control is not there.
    How do I download the CR reports viewer?
    thanks

    I am giving myself points for stumbling onto the solution to this.
    I had basically given up that I would not be able to view my reports on this computer.  I tried everything I could think of to either fix or remove the ActiveX control.
    I had to do some stuff on Access today and in the Tools menu there is an item called Active X controls.
    I clicked on the Crystal Report Active X Controll 11.5 and then clicked on the Unregister button.
    I opened the IE add-on manager and the control was nowhere to be seen.
    I logged on the site where I need to view the reports and what do you know it asked me to install the
    Active X control.
    Two IE restarts later I am now able to see my reports.
    So if you need to remove an Acitve X control from IE and it won't let you delete try unregistering it in Access.

  • Crystal Reports Viewer XI R2 Missing icons on toolbar when displayed

    I am using Crystal Reports Viewer XI R2 on Windows 2003 Server and trying to deploy to a different server.
    I have deployed a new web site from a development server to production.  The crystal reports render correctly, but the only problem is that the icons for the viewer show "X".  I have tried the following:
    Copy the aspnet_client folder (c:\Inetpub\wwwroot\aspnet_client) and all of itu2019s subfolders to the physical root directory of the custom web site.
    If the above does not help, ensure that this is in the web.config of the application:
    <httpHandlers>
    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </httpHandlers>
    Still see "X" in the view tool bar.
    The w3SVC1 log shows the following:
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /PCS2/WebResource.axd d=fkLVkQwks9cycSbn9MoaTw2&t=633187128429062500 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 200 0 0
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/prevd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/firstd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/next.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/grouptree.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/upd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/last.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/search.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/bologo.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08
    Can anyone help my find my icons?

    >
    Clif McNeely wrote:
    >
    > The w3SVC1 log shows the following:
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /PCS2/WebResource.axd d=fkLVkQwks9cycSbn9MoaTw2&t=633187128429062500 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 200 0 0
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/prevd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/firstd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/next.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/grouptree.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/upd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/last.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/search.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/bologo.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08
    >
    > Can anyone help my find my icons?
    Your IIS logs show that the web server can't find the toolbar gif files. The first thing I'd do here is browse to this location using your IIS Manager. Find the next.gif file and right click it and select Browse. This will take your application out of the picture and will tell you if you can see this gif file on its own as processed by IIS.
    If that doesn't work you likely have a permissions issue. Look at the security on the toolbar directory and see if the ASPNET or Network Service account have rights to read that directory. Also make sure the group IIS_WPG has access here too. You might even want to run the IIS Managers permissions wizard to clean up file permissions here.
    Another thing you could try is creating a Virtual Directory that points to the original aspnet_client directory under C:\inetpub\wwwroot.
    Hopefully that helps. Good luck!

  • Crystal Reports Viewer 11.5 fails in Vista

    We are using the Crystal Reports Viewer (crviewer.dll) version 11.5.10.1263. It works fine in XP but fails with the following error in Vista:
    A first chance exception of type 'System.AccessViolationException' occurred in sprdlgs2.dll
    An unhandled exception of type 'System.AccessViolationException' occurred in sprdlgs2.dll
    Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Sprdlgs2.dll is the DLL that contains the dialog in which the viewer resides. I know that crviewer.dll is registered correctly.
    Our product is a C++ MFC multi-document application migrated from Visual Studio 6.0 to the .NET Framework 2.0 with the managed code flag (/clr) on.
    Any help would be appreciated.

    Hi Peter,
    As Jason indicated the RDC has not been tested with Vista nor any version of .NET IDE. RDC is COM and Microsoft is moving away from COM and to their Framework which as you said you must also do as we must. Even though MS upgrades their OS's we can't follow for old technolgies, it just becomes too much coding and vertually becomes a new version of CR with the amount of work required. To move CR forward we try to release patches for the current versions that are 100% backward compatable with the current OS's. XI R2 with SP2 now supports Vista through a service patch.
    The RDC has not been updated since Version 9 at that time Windows XP and 2000 were the only OS's available and they fully supported COM. It simply becomes to costly to make everything backward compatable. For developers like yourself you can appriciate this, do you still support Windows 3.1? At some point everyone has to cut off backward compatablity.
    Moving forward because .NET 2008 is also new, even XI R2 has problems with it, this is due to MS updating their 1.1 Framework to 2.0 and 3.5. they changed things which we had specific dependencies on so now we have to also change, this all takes time to implement.
    So this becomes a "best effort support" case since you are doing this on an unsupported platform. I did not see any results of your testing in debug mode on Vista? Install .NET 2008 on a Vista 32 PC and run your app in debug mode, if you use Vista 64 set your compiler to use x86 only. I believe your dll's are wrappers around the crviewer.dll and is likely either a permission issue with our COM(ActiveX) dll's or your dll's. Using regedt32.exe will give you the ability also to change permissions on the viewer and possibly your dll. It may be that Windows is not allowing your exe to access your wrapper as the error suggests in your original post.
    Bottom line is, you should upgrade your app to use the .NET assemblies and stop using the RDC. There are lots of samples and fairly easy to migrate what your RDC app is doing to .NET code. Coding won't be one to one but the steps to execute a report and view are the same.
    Thanks again
    Don

Maybe you are looking for

  • Netting

    Hi, I have a question regarding netting between customer and vendor. Netting happens in F110 automatically. Does it clear the customer-vendor open items by line items or by balance. For example, Customer has 5 line items totally $3000(debit balance)

  • Slave 3.9 server to master 3.8sp4 server

    Hi, I want to add a slave vpn server (3.9 in own tree) to my bordermanager 3.8 serverenvironment. I assume adding an ike server is possible in this situation and I do not need to update my master to 3.9 first? regards, John

  • FCp for the web

    What is the best way to output my FCP movies for web streaming? I want the best possibly quality for my images but am not sure the best way to go about this.

  • Architecture Question regarding RPD (Best design practice)

    Hello, I need some design help regarding the best way to build a RPD for a Bank. Your help / guidance is greatly appreciated as always: Following is data (example) Revenue ALL (1 million record) Revenue by filter A ONLY (250k) Revenue by filter B ONL

  • BizTalk Server BAM Issue

    Hi, We are unable to view applications transactions in BAM portal. few days we saw all transactions noe we getting error in BAM portal when I was trying to view all application transactions. already I am the member of that group.