Failed to open a rowset   Crystal reports

Posted on 2005-04-28
Last Modified: 2009-12-16

I have created a crystal report on my local windows application.  I used the  crystal wizard and got the parameters needed.

when I ran the report in the viewer I get this error

Failed to open a rowset  

this is all i used for code

 Dim rpt As New report1
CrystalReportViewer1.ReportSource = rpt

p.s. the database is not local


I bought the crystal report book and followed the directions but still can't get it working

Question by:genesisproject
    LVL 9

    Expert Comment

    Hi genesisproject,

     is rpt.Load() loading your report? You might need to look at this

     Dim report as ReportDocument = new ReportDocument()
     CrystalReportViewer.ReportSource = report

     Also if you have paramters you might need to also look at

     DatabaseLogin or is it Logon and SetParameters

    LVL 100

    Expert Comment

    LVL 9

    Accepted Solution

    the exact commands are

                    Report.SetDatabaseLogon("username", "password")
                    Report.SetParameterValue("CompanyCode", thisCompanyCode)
                    Report.SetParameterValue("StartingInvoice", thisInvoice)
                    Report.SetParameterValue("Reprint", True)
                    Report.SetParameterValue("IsBranch", False)
                    Report.SetParameterValue("PrintDiscount", False)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now