on 12-22-2008 8:05 AM
My development environment is:
Windows 2000 professional + Foxpro 9.0 + Crystal Report XI
I built the report using OLE DB (ADO), Microsoft OLEDB provider for Visual Foxpro, that contains 2 tables.
I successfully change the data source to another tables with the same table names in different directory. But I want a different table name. Is it possible for Crystal Report to have a table name mapping, etc. It could be any version XI or 2008.
To change the table name at runtime using the RDC, we will need to use the "Location" property of the Tables object.
Eg:
Report.Database.Tables(1).Location = "authors" 'authors is the first table in the report.
Therefore, if you are changing from a report that contains fully qualified table names to a report that does not use these fully qualified names, we will have to loop through the tables, changing the names.
Eg:
Report.Database.Tables(1).Location = "authors"
Report.Database.Tables(2).Location = "books"
Report.Database.Tables(3).Location = "publisher"
Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.