Transformation from XFRX#DRAW to some flow layout ouput (FDOC, FRTF, FODT, NATIVE_FDOCX) contained some blank page(s).

KB-20190220-03

Version

Before XFRX 19.0

Cause

Missing internal information about detail band.

Symptoms

Every page is blank.

Workaround

Add internal information about detail band.

m.loo=EVALUATE([xfrx("XFRX#DRAW")])
m.loo.setUnit("IN")
m.loo.newReport(1,1250,NULL)
m.loo.addPage(8+0.1, 8, 0)

* WORKAROUND
m.loo.newSection(CREATEOBJECT("cusURSection", 4), loo.npageheight, 0)

m.loo.setForeColor(255, 0, 0)
m.loo.setBackColor(192,192,192)
m.loo.setFont("Arial", 10, .T., .F., .F.)
m.loo.drawLine(0, 5, 8, 5, 1, 8)
m.loo.drawLine(0, 5.5, 8, 5.5, 1, 8)

m.loSession2=EVALUATE([xfrx("XFRX#INIT")])
m.lnRetVal = m.loSession2.SetParams("c:\temp\xx.doc",,,"1250",,,"FDOC")
m.loSession2.TransformReport(m.loo)