delphi 7 report server & delphi 5 clients
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
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
This discussion has been closed.
Comments
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
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.