data enviroment and data report 
Author Message
 data enviroment and data report

Hi all

I have two questions:
1. I'm using a data enviriment in my application. In the object itself I
write the path of the database. Is there any way to witre it as a command,
so it can be changed according to tlicatiob path?

2. Is there any way to build sort of a template for data reports, so I can
use it whenever I want, and add the additional featurs for every report?

Need your help

thanks
Ohad



Tue, 14 Sep 2004 22:21:51 GMT  
 data enviroment and data report

1. You can specify the connections's ConnectionString property in the
dataenvironment and reopen them. For exmaple:

DataEnvironment1.Connection1.ConnectionString =
"provider=microsoft.jet.oledb.4.0;data source=" + App.Path + "\db1.mdb"
DataEnvironment1.Connection1.Open

2 There isn't such a template. However, you can change items on a
datareport programmatically. For example,

DataReport1.Sections(3).Controls("Label1").Caption= "Test"

Hope this help

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)



Mon, 20 Sep 2004 17:24:05 GMT  
 data enviroment and data report
I am not sure what you mean by templates for data reports but, as far as the
path for the database. I usually keep my database in the same or sub dir of
the app. For this you can use App.Path & "\Database.mdb" or App.Path &
"\Data\Database.mdb"

HTH

Dan


Quote:
> Hi all

> I have two questions:
> 1. I'm using a data enviriment in my application. In the object itself I
> write the path of the database. Is there any way to witre it as a command,
> so it can be changed according to tlicatiob path?

> 2. Is there any way to build sort of a template for data reports, so I can
> use it whenever I want, and add the additional featurs for every report?

> Need your help

> thanks
> Ohad



Tue, 14 Dec 2004 22:55:27 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB6 Data Enviroments to Data Reports w/ SP's

2. I can't add a Data Report or a Data Enviroment or DHTML

3. Help - VB Data Report and Data Enviroment

4. VB6 Data Enviroment, Link 2 MDB data.

5. VB6 Data Enviroment, Link 2 MDB data.

6. How to Query on Data Enviroment based data form

7. Missing Data Enviroment, Data Binding references

8. printing without crystal report or data report for non data base reports

9. Data Enviroment Designer Package and Deployment.

10. RecordCount and AbsolutePosition in VB Data Enviroment

11. Missing Data Enviroment Designer

12. Data enviroment

 

 
Powered by phpBB® Forum Software