Data Access Worldwide Knowledge Base
Article ID 2185 Article Title HOWTO: Create TTX Files using Crystal Reports Designer Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2185 KBase Category CRYSTAL REPORTS Date Created 11/07/2005 Last Edit Date 11/07/2005
Article Text
Although data definition files can be created manually using a text editor such as Notepad, Crystal Reports provides a tool, called Database Definition Tool, for simplifying the process.
Database Definition Tool
The Database Definition Tool is available from the Field Definitions Only dialog box when you begin designing a report based on the Field Definitions Driver. This tool allows you to design a data definition file as the first step of designing your report.
1. In the Standard Report Creation Wizard, expand Create New Connection, and then expand Field Definitions Only.
2. In the Field Definitions Only dialog box, click Create File to open the Database Definition Tool.
3. Use the Database Definition Tool to create fields for your data definition file.
Use the controls to enter field names, field types, and sample data that will appear in the Crystal Reports Preview Tab. If you select String as the field type, you will also be asked to specify a maximum string length.
4. Click Add to add each new field to your data definition file.
Each field appears in the list box at the bottom of the Database Definition Tool.
5. Continue adding as many fields as necessary for your data definition file by entering the information in the controls of the Database Definition Tool, and clicking Add each time.
You can delete a field that you have created by selecting the field in the list box and clicking Delete.
6. Click File and then click Save when you are finished designing your data definition file.
The Save File As dialog box appears.
7. Save the data definition file where it can be accessed by your report file.
Click Finish and the new data definition file will appear in the Available Data Sources box under the Field Definitions Only node.
8. Double-click the table to add it to the Selected Tables box and continue creating your report.
Note:
The steps described here were taken from the Crystal Reports help (CrystalDevHelp.chm). For further information, read the "Creating data definition files" topic.
KEYWORDS:
CDO; Crystal Data Objects; TTX
Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Web Links Related to this Article
DAW Knowledge Base article 2183: ERROR: "Unable to instantiate COM object." when running a report
URL=http://www.dataaccess.com/KBPrint.asp?ArticleID=2183
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.