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

Stream Read Error

edited July 2005 in General
Hello

Has anyone had an issue where 1 computer with Report Builder encounters a
stream read error when reading a report from a database (SQL Server) and
another one doesnt?

Cheers

Paul

Comments

  • edited July 2005
    Hi Paul,

    This is not a known issue with ReportBuilder. Usually a stream read error
    indicates corrupt template data. What are the differences between the
    computer that can successfully run the report and the one that receives the
    error?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    This error is really starting to wind me up now Nico!

    I have totally uninstalled Report Builder (following corrupt install
    article)

    I have wasted a lot of very valuable time on this error.

    I dont believe there are any differences between my machine and the other
    machine. The only difference is that I have Delphi 6 Professional and the
    other machine has Delphi 6 Pro

    Has anyone got a sample simple program I can test with?

    Stream read errors seem to be reported with BDE - But I am using SQL Server
    with ADO.

    Cheers

    Paul

  • edited July 2005
    Correction - Other machine has Enterprise

  • edited July 2005
    Hi Paul,

    Which version of ReportBuilder are you using? We have not encountered an
    error like this having to do with separate editions of Delphi 6. Delphi 6
    Enterprise does contain some extra classes and objects but if you are using
    any of these, it should not give you a Stream Read Error. Try placing the
    \RBuilder\Source\... directory in your library path replacing the \Lib
    directory and set Delphi to stop on exceptions. Then see if you can trace
    into the ReportBuilder code and find out where the problem is occuring.
    This may give us a clue to what is happening.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    Hi Nico

    We are using Report Builder 9.02 Enterprise with TeeChart 6.02

    We cannot remove the lib dir because delphi complains about missing files -
    rsStreamedReport

    Can I send you a demo app?

    I did manage to get one occasion where the stream read error had a bit more
    information - something to do with mmPaperHeight, but that was with a report
    that had a subreport

    At the moment I cant even load a report with a simple Label from the
    database!

    I have taken the entire report builder directory of a third developer
    machine and put onto my machine. I then took the demo app and tried to
    recompile. It recompiled, but now I get record not found when the database
    has a template in it. This is really doing my head in! Thanks for any help

    Cheers

    Paul

  • edited July 2005
    Hi Paul,

    1. You apparently have the Server Edition and are creating a server app.
    For future reference, please be sure to tell me this before we get started
    or post your question inside the Server newsgroup. This helps us understand
    what type of application you are trying to build and what the problem may
    be.

    2. When using RB Server, there are two directories added to your library
    path \RBuilder\Lib, and \RBServer\Lib. I want you to change the
    \RBuilder\Lib directory to \RBuilder\Source, leaving the \RBServer\Lib
    directory where it is so you have access to the "rs" server .dcu files.

    3. Which demo are you trying to use? Is this a server demo or one of the
    demos included in the \RBuilder\Demos\... directory?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    Sorry Nico I should have said that

    I have created a very simple program - just a form with some report
    components on it does not come off of any of the existing demos.

    Ok I have done what you requested

    The error is occuring in ppPrintr.pas

    Filer.DefineProperty('mmPaperHeight', ReadPaperHeight, WritePaperHeight,
    True);

    This is the same place as earlier only this time I just get a stream read
    error

    Cheers

    Paul


  • edited July 2005
    Hi Paul,

    If possible, please send a copy of this example in .zip format to
    support@digital-metaphors.com and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2005
    Hi Nico

    We have had to resort to changing to using a file based volume

    Due to the massive amount of time I wasted on this problem, I dont know when
    I will get time to do example, as the demo program I had has been changed a
    lot.

    When I get a chance I will send to you

    Now I have another new problem.

    Please see new thread

    Cheers

    Paul

This discussion has been closed.