Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create Crystal OLE control at runtime?
Message
From
20/02/2003 09:00:58
 
 
To
20/02/2003 03:43:02
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00754000
Message ID:
00755468
Views:
8
This is not a good idea for two reasons.

1. PUBLIC variables are not good OOP
2. This uses an older Crystal integration method that is no longer recommended.


>I use a Public object in the App Startup prg.
>
>PUBLIC oCrystal
>
>oCrystal = CREATEOBJECT( 'Crystal.CrystalReport' )
>
>*-- Set Crystal's Default Behaviour......
>oCrystal.ProgressDialog = .T.
>oCrystal.WindowAllowDrillDown = .T.
>oCrystal.WindowControlBox = .F.
>oCrystal.WindowMaxButton = .F.
>oCrystal.WindowMinButton = .F.
>oCrystal.WindowShowCancelBtn = .T.
>oCrystal.WindowShowCloseBtn = .T.
>oCrystal.WindowShowExportBtn = .T.
>oCrystal.WindowShowGroupTree = .T.
>oCrystal.WindowShowNavigationCtls = .T.
>oCrystal.WindowShowPrintBtn = .T.
>oCrystal.WindowShowPrintSetupBtn = .T.
>oCrystal.WindowShowProgressCtls = .T.
>oCrystal.WindowShowZoomCtl = .T.
>oCrystal.WindowShowSearchBtn = .T.
>oCrystal.WindowState = 2
>oCrystal.Destination = 0 && Screen
>
>Regards
>John Hussey
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform