Error on some computers
Hi!
I have an application which loads some .RTM reports and send them to the
printer. Easy stuff.
The problem is that I have 2 computers which cannot load any report using
neither variable components or code in the calc tab. Once the report gets
to be printed, this message is shown: "Error reading
raCodeModule1.ProgramStream: Stream read error." The report doesn't print
at all.
What can cause the problem ? How can I fix this ??
Thanks!!
I have an application which loads some .RTM reports and send them to the
printer. Easy stuff.
The problem is that I have 2 computers which cannot load any report using
neither variable components or code in the calc tab. Once the report gets
to be printed, this message is shown: "Error reading
raCodeModule1.ProgramStream: Stream read error." The report doesn't print
at all.
What can cause the problem ? How can I fix this ??
Thanks!!
This discussion has been closed.
Comments
1. Are you compiling an application on a developement machine and then
deploying it to the other 2 machines? If so, are you compiling the
application into a stand alone .exe or compiling with runtime packages?
2. Are you loading reports from files stored on disk or from a database?
(Technically if say .RTM that should mean files stored on disk, but I want
to make sure that is what you mean). If you are using a database, are you
using the BDE? If you are using the BDE to load templates from a database,
then try increasing the BDE configuration settings for MaxBlobSize and
BlobsToCache. If MaxBlobSize is smaller than the size of the report, then
that will cause an issue.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
1- The application is compiled as a stand alone .exe. I have 50+ other
computers using the same app without problem.
2- The reports are stored in .rtm files. The data within the report is
accessed through the BDE. No blob fields are used at all.
Any hint ?
Have not heard of this before. Make sure that exact same .exe is installed
on each machine. I would try updating the video and printer drivers on the
problematic machines. You could also try re-installing the BDE on those
machines.
Do some incrmental test to determine exactly what types of reports cannot be
loaded. Start with an empty report. Then a report with one TppVariable. Then
a report with one TppVariable with a simple OnCalc event-handler, etc.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com