on 05-12-2011 10:47 AM
Hi,
I am linking a Crysta Report to an Excel spreadsheet and displaying the information. I am trying to display a field on the page that looks like 0810911071309. In the spreadsheet the format of this is "Custom" and 0000000000000. However, when I try and display this in my report the leading 0 from 0810911071309 is taken off.
Can anyone help me?
Thanks in advance
Aled
When crystal connects to Excel it ignores any excel formating and derives its data type from the first field it finds.
Thus crystal will treat your data as a number.
To restore your formatting use a formula
totext(yourexcelfield, "0000000000000", 0, "")
Replace field on design view with the above formula.
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.