ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : PBM XFRX : TransformReport(loXFF)   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

mer. 21 décembre 2011, 10h41
OlivierL
atoutfox.public.association

PBM XFRX : TransformReport(loXFF)

Bonjour,

J'utilise XFRX pour afficher mes reports sous format XFF.
Si j'utilise l"ancien moteur de foxpro : tout marche nickel ( police de
caractère, lignes conformes à l'original)
Si j'utilise le nouveau moteur foxpro : petit problème d'affichage ( grosses
lignes .....)

Donc, j'utilise l'ancien moteur
Ceci n'est pas le soucis.
J'ai customisé la barre de xfrx pour pouvoir enregistrer le xff en cours de
lecture en fichier pdf.
Problème : même si dans l'aperçu, il s'affiche correctement. Le fichier pdf
généré n'est pas propre ( grosses lignes ... comme le nouveau rendu foxpro)

Si vous voyez un soucis.
Merci pour votre aide.

Voici le code que j'utilise :


LPARAMETERS tcOutput

IF NOT ISNULL(this.oExtensionhandler)

IF PEMSTATUS(this.oExtensionhandler, "Export", 5)

IF NOT this.oExtensionhandler.Export(This.oxfrxwriter)

RETURN

ENDIF

ENDIF

ENDIF

LOCAL opt, optform, loXFF

opt = CREATEOBJECT("cusOptions")

opt.cPagescope = ""

NomFichier = STRTRAN(this.Parent.Caption," "," ")+ " du "+
STRTRAN(DTOC(DATE()),"/","_")

opt.coutputfile = PUTFILE("Sauvegarder en " + _XFRXTYPEXPORT,_XFRXDEFAULTDIR
+ NomFichier,_XFRXTYPEXPORT)

IF _XFRXEXPORTPAGE = .T.

optform = CREATEOBJECT("XFRXfrmExportOptions_"+This.LangID,@opt, this)

IF TYPE("optForm")!="O" OR ISNULL(optform)

RETURN .f.

endif

optform.Show()

ENDIF

IF EMPTY(opt.cOutputFile)

RETURN .f.

ENDIF

IF NOT ISNULL(this.oExtensionhandler)

IF PEMSTATUS(this.oExtensionhandler, "ExportOptions", 5)

IF NOT this.oExtensionhandler.ExportOptions(This.oxfrxwriter, opt)

RETURN

ENDIF

ENDIF

ENDIF

loXFF = this.oXFRXWriter

LOCAL loSession


loSession=EVALUATE([xfrx("XFRX#INIT")])

IF loSession.SetParams(opt.coutputfile,,.T.,,,,ALLTRIM(_XFRXTYPEXPORT)) = 0

IF NOT EMPTY(opt.cPageScope)

loSession.setPageRange(opt.cPageScope)

ENDIF

IF TYPE("this.oProgress")="O" AND NOT ISNULL(this.oProgress)

loSession.setProgressObj(this.oProgress)

ENDIF

loSession.setPermissions(_XFRXALLOWPRINT,_XFRXALLOWMODIF,_XFRXALLOWCOPY,_XFRXALLOWANOT) loSession.setPasswords(_XFRXOWNERPASS,_XFRXUSERPASS) loSession.TransformReport(loXFF)ENDIF
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000007735
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3