Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Custom Function to Read a File then...

Status
Not open for further replies.

arachnoid

Programmer
Jun 14, 2002
108
US
I need to be able to create a custom function within Crystal that will query a file and then perform calculations on the results returned by the query.

Specifically, I need to create a function that will read a date from a file and then calculate various date ranges based on the date in the file.

First, is this even possible within Crystal?

Secondly, if so, could someone post sample code?

Thanks in advance.
 
Hi,
As far as I know, Crystal cannot 'read' and interpret data from a text file..You could import the file's contents into something like Access or Excel and use Crystal to report on it..



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Is the reason you want to use a text file because you want to be able to modify the date or dates in the file without having to modify the report?

Because you could create a formula in the report which contained the date(s).

-- Jason
"It's Just Ones and Zeros
 
Also -- couldn't you put your date(s) in an XLS (Excel) file?

-- Jason
"It's Just Ones and Zeros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top