Re: NewEra / Crystal Reports
Posted in 1998
Frank Krupkowski schrieb: > > I am trying to call the Crystal Report engine from within a NewEra program > and have had sucess with the exception that when output is to a preview > window, the window with the report opens and closes in a flash before my > eyes. I have checked all the error codes and see no problems. Any clues > as to why this is happening???????? Hi there :> It happens because you reach the end of your function and probably declared the Engine and/or Job objects locally. For a first test put a MessageBox at the end of the function (i.e. after StartJob() to stop execution. One possibility to fix the whole thing later is to define the variables globally in order to stop them from being deallocated. Regards, Dirk -- -- Dirk Gunsthoevel phone: +49 (0)251 624947 -- Hoeftestr.49 fax: +49 (0)251 624177 -- 48167 Muenster mobile: +49 (0)171 8047582 -- Germany http://members.aol.com/Plabit/welcome.html