Home Component Writing

Loading a template in a DLL

edited July 2003 in Component Writing
Hi all,
im using RB7 Pro and im having some diffuculty with a situation where i
have a DLL with all my reports in it. When i instantiate the DLL i pass it
some variables along with a Database connection. This much works without any
problems.
I have some reports, which in the calling application are able to be
customised by the user and the layout saved as a template to a database.
When im inside the DLL and i attempt to load the template using the method
"ppReport1.Template.LoadFromDatabase" i get and access violation which is
indicative of the queries not being passed a connection.
Does anybody know of a way to get around this problem? Can i somehow pass
the connection to the template before i call the load method?

Any suggestions would be greatly appreciated.
TIA
Stuart

Comments

  • edited July 2003
    Hi again,
    the error im getting is a Stream read error which is happening inside the
    Load from database method.
    the template was created using RB5. Would this have any effect?
    Thanks agian
    STuart.

  • edited July 2003
    Problem solved.

    It was a BDE setting. Blob size and Cache size.!!
This discussion has been closed.