Dictionaries and Out of Memory error....
Posted on 2002-04-23
Hi, this is a bit of a bizarre error (at least it seems that way to me!). Would appreciate any help anyone could give. Background info...
I'm writing a reports viewer in VB using the Crystal Reports viewer control. The data is coming from an ODBC DSN and the report was generated using the DSN via a Crystal Dictionary. At run time I have to change the ODBC DSN to the correct dataset and to do this I use the SetLogOnInfo of the Database Table object.
The symptoms of my problem are this...
If the report is distributed without the dictionary my viewer runs fine. If the dictionary is available and I open the report using the normal Crystal Designer program, firstly it asks me to locate the dictionary, if I do and save the report again when I try to open that same report via my viewer I get an Out of Memory (7) error. Renaming the dictionary gets the report working again, but as soon as the dictionary has its original name and location the report viewer errors up.
Not sure that I've explained myself very well so clarifying questions are very welcome.