Data Connectivity
 Crystal Reports Forum : Crystal Reports .NET 2003 : Data Connectivity
Message Icon Topic: Microsoft Access VB 8 and Crystal Report Post Reply Post New Topic
Author Message
JCortez
Newbie
Newbie


Joined: 14 Mar 2008
Location: Costa Rica
Online Status: Offline
Posts: 1
Quote JCortez Replybullet Topic: Microsoft Access VB 8 and Crystal Report
    Posted: 14 Mar 2008 at 7:58am
Hi all,
I am working with VB 8 - 2005 and Crystal Reports. However, I can't make my report display any data from my Access DB.
 
It is somewhat funny, though, since in the crystal report viewer in which the reports is embedded, strange fields like dates and names of the week appear, but these have nothing to do with the data in the DB.
 
This code fragment comes from the click event o f a button, my idea was to load a report when click occurs, however, nothing happens. No report or data fields from my db is displayed
 
<!-- beginning of code -->
 
Main.reportDocument1.FileName = "F:\inventoryDatabase\Inventory_Database\WindowsApplication1\CrystalReport1.rpt"

Main.reportDocument1.Load("F:\inventoryDatabase\Inventory_Database\WindowsApplication1\CrystalReport1.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)

CrystalReportViewer1.ReportSource = Main.reportDocument1

CrystalReportViewer1.RefreshReport()

Me.CrystalReportViewer1.Update()
 
<!-- end of code -->
Please provide me with a sample code, if you have any.
Willing to provide any details.
Thanks beforehand.
 
JCortez
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.