Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Stream Read Error

edited January 2003 in General
Hi. I have a built a report builder into my application. This is a delphi 5
(with patches applied) application using sybase 7 via an asta server on
Windows 2000 (sp2). I am able to create a report and preview it. I am using
ReportBuilder Professional 6.03 and ASTA 3.066. When exiting the app and
trying to access the report I get the following error:

Error reading ppReport2.PrinterSetup.mmPaperHeight: Stream read-error.

There are similar messages in the newsgroups but they seem to deal with the
BDE which we are not using.

I have been able to trace the point of error to be in the procedure
TppPrinterSetup.ReadPaperHeight(Reader: TReader) within the ppPrintr unit. I
am not suggesting that the error lies with ReportBuilder, merely showing
where the error occurs.

Any suggestions.
Louis

Comments

  • edited January 2003
    As a test, try taking ASTA out of the equation and connect to the Sybase
    database directly to see if the problem goes away. You'll have to use
    another DADE plugin, to create a test report. I believe we only have been
    able to use the BDE to successfully connect to Sybase ASA 6 and ASE 11. You
    'll want to add daDBBDE in your uses clause to use the BDE to test with. We
    have used ASTA 3 and RB 7 in our end user configuration with the report
    explorer using databased templates, but we have not built a Sybase/ASTA
    server combination.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2003
    With ASTA out of the way the report works fine. We have managed to determine
    that redefining the templete field as long varchar instead of long binary
    resolves the error. There appears to be a problem with saving binary data
    via ASTA and NativeDB.

    Thanks for your help
    Louis

This discussion has been closed.