Information générale
Catégorie:
Produits tierce partie
Titre:
XFRX and Fatal error: Exception code=C0000005
Versions des environnements
Hi all
I buy XFRX and I’m facing the “Fatal error” in my VFP application in this situation.
I have a print class where I can choose the report I want to print, select a printer, number of copies… tha runs well since a long time ago.
Now I inserted your code like this one below in a Command Button and it runs ok, the problem occurs when I “RELEASE THISFORM” clicking a button… "Fatal error: Exception code=C0000005"
Any ideas would be great.
Thank’s in advance,
NPedro
********************************************
**** command button code***************
LOCAL lcreport, loSession, lnRetval, lcPageCaption
SET CLASSLIB TO xfrxlib\xfrxlib, HOME()+"ffc\_reportlistener"
SET PATH TO xfrxlib
toViewer = CREATEOBJECT("frmMPPreviewer")
toViewer.iTool = 2 && we are using the "fake" toolbar
tnReportType = 1
toViewer.setLanguage("pt")
toViewer.iBook = 2
toViewer.iEmail = 1
toViewer.VISIBLE = .f.
IF VERSION(5)>=900
loSession=EVALUATE([xfrx("XFRX#LISTENER")])
ELSE
loSession=EVALUATE([xfrx("XFRX#INIT")])
ENDIF
lnRetval = loSession.SetParams(,,,,,,"XFF")
IF lnRetval = 0
REPORT FORM ("REPORTS\CLIENT1.frx") OBJECT loSession
ENDIF
LOCAL loXFFDocument
IF VERSION(5)>=900
loXFFDocument = loSession.oxfdocument
ELSE
loXFFDocument = loSession.finalize()
ENDIF
toViewer.previewXFF(loXFFDocument, "Astuto")
IF toViewer.VISIBLE = .F.
toViewer.SHOW(1)
ENDIF
RELEASE frmMPPreviewer
RELEASE lcreport, loSession, lnRetval, lcPageCaption, _xfrx_wordwrapalgorithm, __xfret, loxffdocument
********************************************
********************************************
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement