Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CR Preview Error
Message
 
À
06/03/2002 00:34:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00628833
Message ID:
00628891
Vues:
73
Ric,

I also had this problem.
With this code the problem disappeared.
The Form is not modal.


**************************************************
*-- Class: crystalvieewerform (c:\cdbk70\amline\libs\abiznessgeneral.vcx)
*-- ParentClass: bebizobjform (c:\cdbk70\amline\libs\abeform.vcx)
*-- BaseClass: form
*
#INCLUDE "c:\cdbk70\amline\include\appincl.h"
*
DEFINE CLASS crystalvieewerform AS bebizobjform

PROCEDURE Destroy
THIS.oEnvironment = .NULL.
THISFORM.REMOVEOBJECT( 'ole_crystalViewer' )
DODEFAULT()
ENDPROC


PROCEDURE Activate

THISFORM.BORDERSTYLE = 3

IF TYPE("This.ole_crystalViewer") <> "O"

WITH THISFORM

.LOCKSCREEN = .T.
.ADDOBJECT 'ole_crystalViewer' , 'olecontrol' , 'crviewer.crviewer.8.0' )

WITH .ole_crystalViewer
.VISIBLE = .T.
.TOP = 1
.LEFT = 1
.HEIGHT= .PARENT.HEIGHT
.WIDTH = .PARENT.WIDTH

.DisplayBackgroundEdge = THIS.oEnvironment.DisplayBackgroundEdge
.DisplayGroupTree = THIS.oEnvironment.DisplayGroupTree
.DisplayTabs = THIS.oEnvironment.DisplayTabs
.DisplayToolbar = THIS.oEnvironment.DisplayToolbar
.EnableAnimationCtrl = THIS.oEnvironment.EnableAnimationCtrl
.EnableCloseButton = THIS.oEnvironment.EnableCloseButton
.EnableDrillDown = THIS.oEnvironment.EnableDrillDown
.EnableExportButton = THIS.oEnvironment.EnableExportButton
.EnableGroupTree = THIS.oEnvironment.EnableGroupTree
.EnableHelpButton = THIS.oEnvironment.EnableHelpButton
.EnableNavigationControls = THIS.oEnvironment.EnableNavigationControls
.EnablePopupMenu = THIS.oEnvironment.EnablePopupMenu
.EnablePrintButton = THIS.oEnvironment.EnablePrintButton
.EnableProgressControl = THIS.oEnvironment.EnableProgressControl
.EnableRefreshButton = THIS.oEnvironment.EnableRefreshButton
.EnableSearchControl = THIS.oEnvironment.EnableSearchControl
.EnableSearchExpertButton = THIS.oEnvironment.EnableSearchExpertButton
.EnableSelectExpertButton = THIS.oEnvironment.EnableSelectExpertButton
.EnableStopButton = THIS.oEnvironment.EnableStopButton
.EnableToolbar = THIS.oEnvironment.EnableToolbar
.EnableZoomControl = THIS.oEnvironment.EnableZoomControl



.reportsource = ocrReport
*-- .refresh() && crée une erreur !!!!! Bug référencé chez SEAGATE


.ViewReport()


ENDWITH

.LOCKSCREEN = .F.
ENDWITH
ENDIF

ENDPROC


PROCEDURE Init
LPARAMETERS oEnvironment

DODEFAULT()

WITH THISFORM

.LOCKSCREEN = .T.
.oEnvironment = oEnvironment
oEnvironment = .NULL.

*.LOCKSCREEN = .F.
ENDWITH
ENDPROC


PROCEDURE Resize
WITH THISFORM

IF .HEIGHT < 200
.HEIGHT = 200
ENDIF

IF .WIDTH < 300
.WIDTH = 300
ENDIF


*-- IL faut que le ctrl activex soit instantié.
*-- il est ajouté par programmation.
IF TYPE("This.ole_crystalViewer") == "O"
WITH .ole_crystalViewer
.WIDTH = THISFORM.WIDTH - 1
.HEIGHT = THISFORM.HEIGHT - 1
ENDWITH
ENDIF

ENDWITH
ENDPROC


ENDDEFINE
*
*-- EndDefine: crystalvieewerform
**************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform