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

Report format (binary or ASCII)

edited November 2003 in End User
Hi!

One small question: How to recognize when report is saved in Database in
ftBinary or ftASCII format.
I have mixed situation and want to reformat all the reports to ftASCII!
THX!

The difference between theory and practice is that in theory there is no
difference between theory and practice, but in practice there is....

Comments

  • edited November 2003

    Try using the Report.Template.OnLoadStart event. This event passes the
    Stream as a parameter. There are two private Report.Template methods that
    you can copy to check the format. Open ppTmplat.pas and search for the
    following methods:

    function IsValidASCIISignature(aStream: TStream): Boolean;
    function IsValidBinarySignature(aStream: TStream): Boolean;


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.