I am writing crystal reports in VB6 and I notice that crystal reports create .tmp files in the working direcory. How can I stop this from happening? Is it a setting to change? Or a command to place in VB6?
Printable View
I am writing crystal reports in VB6 and I notice that crystal reports create .tmp files in the working direcory. How can I stop this from happening? Is it a setting to change? Or a command to place in VB6?
I have never found a way to stop it.
I thought about coding in VB6 the kill statement to clean out the files but the tmp file is placed it the last working directory for your machine. If you are multitasking on your machine the tmp file could be in any directory. This is very frustrating.
They should only be in the same directory as your report file.Quote:
Originally Posted by randy1227
When I said I hadn't found a way to stop it, I didn't mean I hadn't found a way to deal with it. I do/did use Kill to get rid of them.
I have found them in other directories beside where the cr report lies. I experimented with this last night and started my VB6 program then opened explorer and changed directory then ran my cr out of VB6. The temp file was placed in the explorer directory.
Crystal Reports web site has service packs 2 and 3. Service pack 3 is suppose to correct the tmp file issue because it is not suppose to make one. That is what the readme file states.
That is very good to know.Quote:
Originally Posted by randy1227
Do you know if these service packs are for all versions of Crystal or are they version specific?
They are version specific and I believe Crystal 9 is the lowest version they support. I'm still using V9 and the last service pack for V9 was SP5 issued in August. You can subscribe to Crystal's 'Hotfix Notification' service and they will email you whenever hotfixes or service packs are available.Quote:
Originally Posted by Hack