Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a Crystal Reports Control at RunTime
Message
De
06/06/2003 14:40:56
H. C. Doughty
Cybernet Services Inc.
Lansing, Illinois, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00797343
Message ID:
00797401
Vues:
26
Kevin:

The activex control must be registered in VFP.. To do that,

To register the runtime component --- in VFP

Select Tools - Intellisense Manager
Click the types tab
Make sure that COM servers is displayed in the drop down on the right..
scroll to Crystal Reports 9 ActiveX Designer Runtime Library

Click DONE to close the type library references dialog
Click OK to close the intellisense manager

In the command window you can type:
oCRW = CREATEOBJECT("CrystalRunTime.Application")
Then if you type oCR.
When you press the . Intellisense will kick in and show you the properties & methods..

You might as well registrer the CR Viewer control while you are at it. This time, go to the tools | Options menu from the VFP tool bar.
select the Controls tab, then select ActiveX controls from the pulldown.
Select the Crystal Reports Viewer control 9 from the list. Make sure you click on Set as default otherwise VFP may forget the setting.

Click ok to close the options dialog.

Now you can create a new class based on CR Viewer etc...


As a final - Get CrysDev: A developers guide to integrating Crystal Reports, by Craig Bernston, it is a life saver.. you can get it from www.hentzenwerke.com.

Hope this helps
Haydn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform