ok, do i just have to write this code ?visual basic code:--------------------------------------------------------------------------------
VB Code:
  1. Dim crApp As CRAXDRT.Application
  2.     Dim crDB As CRAXDRT.DatabaseTable
  3.     Dim Report As CRAXDRT.Report
  4.  
  5.     Set Report = crApp.OpenReport("c:\myreport.rpt")
  6.     Set crDB = Report.Database.Tables(n)
  7.     crDB.Location = App.Path & "\myDB.mdb"
  8.     Report.ViewReport
if it's where in a button click, or in the crystal report viewr.
and i'm using vb.net 2005 is it the correct code for it?

tanks