Searching in Crystal report files

jdpjamesp

ProgressTalk.com Moderator
Staff member
Bit of a weird request...

For reporting we output our data to csv files and then fire up a Crystal Reports viewer which pulls these files in to display reports. I've noticed that when I open the Crystal reports in something such as textpad, the text files used are human readable. I want to try and search a Crystal file for a list of all the text files it uses so we can then check in the temp directory to check the files are there before we try and run the viewer. Can anyone think of any bright ideas? The following code doesn't seem to pull in anything at all. So I can't pattern match :(

I'm running OE10.1B on Windows XP.

Code:
DEFINE STREAM stReport.

INPUT STREAM stReport FROM VALUE(lvDirectory + "\" + lvFile).

REPEAT:
  IMPORT STREAM stReport UNFORMATTED lv1.
  MESSAGE "JP" lv1 
    VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.

INPUT CLOSE.
 
Further details - the attached report has a text file linked called ipconfig.txt.
 
Make sure that the file is readable to the program.

try
Code:
Message search(lvDirectory + "\" + lvFile).
to see if Progress can find the file.
 
Back
Top