Quantcast
Viewing all articles
Browse latest Browse all 3636

Using Excel worksheet Datasource with Crystal Reports for Visual Studio 2010 (windows 7 x64) not working

Hi,

 

We have trouble setting up a report that pull up data from an Excel sheet. I want my report to show on Crystal Report Viewer. I installed Crystal Report for Visual Studio 2010 (both x64 and x86).

 

Here is the code on the form load:

        Dim viewer As New CrystalDecisions.Windows.Forms.CrystalReportViewer

        Me.Controls.Add(viewer) 

        viewer.Dock = DockStyle.Fill

        viewer.ReportSource = "T:\Reports\External\NAPA\NAPALabels_NoDataSourceChange.rpt"

 

I tried those 3 connection type:

  1. Access/Excel (DAO)
    • Folowing error: Failed to load database information. Error in File NAPALabels_NoDataSourceChange {AE05....}.rpt: Failed to load database information.
  2. Database File
    • Same error as Access/Excel (DAO)
  3. OLE DB (ADO)
    • Database Login dialog shows up:

Image may be NSFW.
Clik here to view.
ScreenShot008.jpg

 

All those connection type work in Crystal Report 2011 designer. But when I try in the application (running in 64 bits) nothing works.

 

Any idea how I can make that works?

 

Thanks


Viewing all articles
Browse latest Browse all 3636

Trending Articles