>I've been using a modified version of code from one of Craig's articles to print Crystal Reports through VFP 8 and also have a form that previews them that came from the Codemine author (we're using Codmine as a framework). This was all working fine. Then something changed, but I don't know what. It wasn't the code; it was something on my system. I stopped work one day with it working and started the next with it broken. I suspect something is wrong with the craxdrt9.dll but I'm not really sure. Whatever is wrong is causing two issues:
>
>1) The PrintOut() will get as far as asking how many pages to print but, when you click ok, it comes up with this error: "OLE IDispatch exception code 0 from Crystal Reports ActiveX Designer: Logon failed..."
That message indicates that Crystal Reports can't get to the data.
>
>2) Trying to run or even modify the preview form comes up with "Class not registered". When this happened before, I just double clicked on the craxdrt9.dll to register it and the form started working. That isn't helping this time.
There are other DLLs involved. crviewer*.dll, craxddrt.dll, and crdesignerctl.dll.
>
>The controls show up under the active-x listing in options in VFP. Double clicking the DLL says it's registering. I don't know what else to try. Does anyone have any suggestions? I'm totally stuck here.
>
>Thanks,
>
>Michelle
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer