RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 752 | Replies: 4
Reply
Join Date: Jan 2007
Posts: 2
Reputation: tekrum is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tekrum tekrum is offline Offline
Newbie Poster

Crystal Report 9.2 Fixed Datasource Location

  #1  
May 6th, 2008
Does anyone knows how to make datasource location of a report fixed like in VB you can use app.path. Can anyone suggest how to do it?

Thanks in advance!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2006
Posts: 750
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 102
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: Crystal Report 9.2 Fixed Datasource Location

  #2  
May 7th, 2008
Hi,

From VB6, just before Viewing the report, Set the DB location for each tables used in the report..
What is your Database..? Access/Oracle/SQL...?

Regards
Veena
Reply With Quote  
Join Date: Jan 2007
Posts: 2
Reputation: tekrum is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tekrum tekrum is offline Offline
Newbie Poster

Re: Crystal Report 9.2 Fixed Datasource Location

  #3  
May 7th, 2008
I have an access database. How do I do that?
Reply With Quote  
Join Date: Nov 2006
Posts: 750
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 102
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: Crystal Report 9.2 Fixed Datasource Location

  #4  
May 8th, 2008
Hi,

Before Viewing the report , set DB location for all the Tables used in the report:

  1. Dim tt As CRAXDDRT.DatabaseTable
  2. For Each tt In m_Report.Database.Tables
  3. tt.Location = "C:\NewDB.mdb"
  4. Next

Regards
Veena
Reply With Quote  
Join Date: Apr 2008
Posts: 16
Reputation: freshface001 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
freshface001 freshface001 is offline Offline
Newbie Poster

Re: Crystal Report 9.2 Fixed Datasource Location

  #5  
May 12th, 2008
in visual basic 6, using Data control for accessing the access database. give the data base name(*.mdb) in "DataBaseName" property of data control.and select the table in the "RecordSource" property of data control. then place no_of text fields or lables in the same form(appear Data control) for viewing the values of the access database data by selecting datasource as data controll name and select field name in the "DataFiled" property of text box or label.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:00 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC