Home Datapipelines

text binary file

edited October 2002 in Datapipelines
Hello,

I have a question, is it possible to get data from a binary file directly
into a report, normally the TextPipeline needs to be used, but i don't think
it's supporting binary files. (i'm not succeeding any way)

Hope anyone can help me on this one,

thanx in advance
Bart

Comments

  • edited October 2002
    Hi Bart,

    grab the data you need from the binary and put it in a JITPipeline.

    HTH,
    Chris Ueberall;
  • edited October 2002
    Hi,

    THanx chris for the answer, but That JitDataPipeline is not supporting
    Binary files, it supports Typed files, but that's not the same I think.

    Using ClientDataSet --> SaveToFile, which creates a Binary file, i can easy
    open it with LoadFromFile, now I want to use this same file into report
    Builder.
    That is what i'm not succeeding in.

    greetings



  • edited October 2002
    Hi Bart,

    you did not specify what kind of data you are using, a 'binary file' is very vague.
    If you saved via 'TClientDataSet.SaveToFile' you should retrieve your data with method 'LoadFromFile'.
    You have to connect the client dataset to a pipeline as with all other datasets.

    HTH,
    Chris Ueberall;
  • edited October 2002
    Hi,

    Binary file , is created by Delphi itself, they just say it's a binary file.
    Have no more specifications on that.

    I can LoadFromFile, that's not the problem; I can even put it in a
    clientdataSet, but to extraxt the correct data for My report I need to put
    it in a database fire a query and then I can print My report. I want to skip
    the database, can it be done without passing through a database. SO can that
    query that I fire from RB, can it be directly on the Binary file or if there
    is a way to do it with the ClientDataSet without a database?

    If you can help me on that , it would be nice

    I have bought TExtraDevices --> Maybe it's possible in there?

    THanx in advance,

    Bart


  • edited October 2002
    Hi Bart,

    I think you'd better ask it in another newsgroup. I have very less experience in using 'TClientDataSet'.

    regards,
    Chris Ueberall;
  • edited October 2002
    How did you create your binary file? Is it typed or untyped? Have you used
    TFileStream before? The binary text file is just a file, so you can use a
    TFileStream to navigate through the file and provide records through the JIT
    pipeline's OnGetFieldValue event. There should be plenty of examples of
    using file streams and typed/untyped files on the web. This is outside of
    the scope of ReportBuilder so you should first try to populate a stringlist
    or grid control on a form with your data to show that you can use a stream
    to show the data in a simple format. Once you can show the data in a simple
    way, then try to show the data through the JIT pipeline and report.

    The text pipeline works for ascii text files only, not binary text files.
    You can use a JIT pipeline. If you have many of these reports using these
    binary text files, then it would be advantageous to create your own
    BinaryTextPipeline component instead of creating a different set of event
    handlers for each report using a separate JIT pipeline. The main reports
    demo #140 uses a typed file.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.