Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create pdf containing foxcharts object in xfrx
Message
De
04/12/2011 07:33:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01530306
Message ID:
01530312
Vues:
70
>- Did you use XFRX#LISTENER or XFRX#INIT?

I'm using

SET CLASSLIB TO _reportlistener.vcx additive
loxfrx= EVALUATE("xfrx('XFRX#LISTENER')")
nRetVal = loxfrx.SetParams(poGRXReportObject.output,m.tempdir,.t.,reportCodePage(),,,"PDF")
If nRetVal # 0
error 'something bad'
endif
REPORT FORM ( pcGRXTempName ) &pcGRXRepExpr OBJECT loXFRX

>- How you insert foxcharts into report?

Report is attached.

Report contains Picture/OLE bound field:

Control source type: Expression or variable name
Control source: EVAL(chartdef.chart)

Visual chart designer form from foxchart is used to create object. Object name m.gChart is
stored in chart cursor column:

DO FORM visualchartdesigner_sample && creates public m.gChart foxchart object
CREATE CURSOR chartdef ( chart m )
INSERT INTO chartdef VALUES ('m.gChart.DrawReport()')

>- if you use image from foxcharts, can you append to reply?

m.gChart.DrawReport() returns object as described in FoxCharts tutorial.
Report engine renders this object by evaluating EVAL(chartdef.chart)

PS:
I have image which cannot rendered to pdf by xfrx but can rendered by PS printer driver + GhostScript.
I can send this image to you by email. This is other issue, this image is not used in Foxchart report.
My XFRX subscription is expired, I'm using older xfrx.
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform