CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old April 4th, 2005, 01:46 PM
    jlefty jlefty is offline
    Junior Member
     
    Join Date: Jan 2005
    Posts: 3
    jlefty is an unknown quantity at this point (<10)
    Question Failed to open a rowset (Crystal Reports)

    I am using Visual Studio .NET 2003 and the version of Crystal that comes with it. I have a problem that when a report is displayed and it doesn't have any data I receive the following error message "Failed to open a rowset" and only a blank screen is shown. I need at least the Header labels to show. How can I make it show at least the header labels.
    Reply With Quote
      #2    
    Old April 4th, 2005, 03:31 PM
    jlefty jlefty is offline
    Junior Member
     
    Join Date: Jan 2005
    Posts: 3
    jlefty is an unknown quantity at this point (<10)
    Re: Failed to open a rowset (Crystal Reports)

    Ok, I figured it out. The stored procedure that runs the report gathers data into a temp table. If the there isn't any data it made the report error out. I rewrote the SP to not use a temp table and all is working well.
    Reply With Quote
      #3    
    Old August 8th, 2005, 07:14 AM
    Nasty2's Avatar
    Nasty2 Nasty2 is offline
    Member
     
    Join Date: Feb 2005
    Posts: 176
    Nasty2 is an unknown quantity at this point (<10)
    Re: Failed to open a rowset (Crystal Reports)

    hey,
    i am having the same problem with Crystal reports.
    i have a few Crystal Reports that were being used as stand-alone reports.
    Now i would like to develop an application (WITHOUT including the reports into the application) that shows all the reports that are in a specific directory (done!), list all the report names in a listview (done), and when the user clicks on a reportname..... i want the application to open the report.

    Currently i have the following code:
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
            'Dim report As ReportDocument = New ReportDocument
            Dim ReportName As String
            ReportName = Me.ListView1.SelectedItems(0).Text
            report.Load(ConfigurationSettings.AppSettings("DirPath") & ReportName & ".rpt")
            report.SetDatabaseLogon("testLogin", "testPassword")
    
            Dim frm As New frmViewer
            frm.Show()
    End Sub
    Quote:
    I rewrote the SP to not use a temp table and all is working well
    how exactly was this done?


    Thanks...... i hope you solve my problem!
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:56 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009