|
-
Sep 5th, 2006, 01:33 AM
#1
Thread Starter
Frenzied Member
Crystal report pro
hi
well my problem is, My database is in My document folder the crystal report read the data from there, i also connected my programe with the same database. but the pro is the database that i attached to the programe ,when u add a new data in it it don't add it on the database that is in my document , he add it in other project folder. so how can i make this thing work??
-
Sep 5th, 2006, 03:28 AM
#2
Re: Crystal report pro
Your program needs to tell the report where the database is located, have a look at this post... http://www.vbforums.com/showthread.php?t=423542
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Sep 5th, 2006, 03:49 AM
#3
Thread Starter
Frenzied Member
Re: Crystal report pro
ok, do i just have to write this code ?visual basic code:--------------------------------------------------------------------------------
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
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
-
Sep 5th, 2006, 05:18 PM
#4
Re: Crystal report pro
This code is VB6 using CR9, but it should be similar for VB.Net.
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Sep 7th, 2006, 10:17 AM
#5
Thread Starter
Frenzied Member
Re: Crystal report pro
sorry but this code didn't workk on vb.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|