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




Reply With Quote