Is there any way to load Crystal Report 9.0 file from stream?

I work with ActiveX Delphi and Crystal Reports 9.0 objects.

I know that I can load a report from a file as follows:

crApplication.OpenReport (AFileName)

However, I would like to save my report in memory and open it from memory instead of a file. I do not want to create temporary files on my disk.

Any ideas?

Thank you for your time.

+6
delphi com activex crystal-reports
source share
1 answer

This answer comes late, but better late than never ...

You can try with a file with attributes FILE_ATTRIBUTE_TEMPORARY and FILE_FLAG_DELETE_ON_CLOSE. Such a file (if there is enough cache available) that is not written to the hard drive and deleted when your application is closed.

There is a BLOG that describes this:

http://blogs.msdn.com/b/larryosterman/archive/2004/04/19/116084.aspx

And here is the article:

How to create a temporary file (0x100) to speed up the application

+2
source share

All Articles