Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am working with Delphi and Crystal Reports 9.0 ActiveX objects.

I know that I can load a report from a file like this:

crApplication.OpenReport(AFileName)

However, I would like to store my report in memory and open it from memory instead of file. I don't want to create any temporary files on my disk.

Any ideas?

Thanks for your time.

like image 782
Wodzu Avatar asked Sep 08 '09 12:09

Wodzu


People also ask

Is Crystal Reports still used?

The Standard and Professional editions were discontinued with the release of SAP Crystal Reports 2008. SAP Crystal Reports Xi Developer edition remains available and does everything that Standard and Pro could do - and more.

Is there a free version of Crystal Reports?

SAP Crystal Reports, version for Eclipse Embed interactive reports into Java applications for free with powerful design, data access, and integration features.

Is Crystal Reports backwards compatible?

A crystal report created in CR 2008 (or even CR 2016) is backward compatible all the way back to CRv9.


1 Answers

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 is (if enough cache memory is available) not written on harddisk and deleted when your application is closed.

There is an BLOG which describes this:

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

And there ist an article here:

How to create temporary file (0x100) to accelerate application

like image 129
Andreas Avatar answered Nov 15 '22 05:11

Andreas