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

delphi 7 report server & delphi 5 clients

edited October 2003 in General
rb 7.02

i have a report server application what produces an archive file and
send it to client. I want to compile report server with delphi 7 and support
clients compiled with delphi 5. The problem is that delphi 7 have changed
the
streaming of components and now all string published properties
( saved with writeComponent ) are saved as widestrings ( if code > 127 )
this routine is used by TppArciveDevice to save report pages.
any ideas how to solve this ?

maybe to create a new device but i can't change or inherit writeComponent

Comments

  • edited October 2003

    One option might be to use Delphi 7 to build a COM object or .DLL that is
    used by the Delphi 5 client application. The COM object could handle the
    reading of the archive file and then pass the page objects back to the
    client.

    Another option might be to have the Delphi 7 server applicatin read the
    Archive file and send each page to the client as object text rather than
    object binary. Search the Delphi help for ObjectBinaryToText routine (it is
    in Classes.pas).




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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2003
    thanks

    ObjectBinaryToText does the same in delphi 7 but i can
    change it to work like delphi 5. i did not try it wet but it
    is a good idea.


This discussion has been closed.