...
Code Block |
---|
language | vb |
---|
linenumbers | true |
---|
|
LOCAL m.loSession, m.lnRetVal
m.loSession = xfrx("XFRX#INIT")
m.lnRetVal = m.loSession.SetParams("output.html",,,,,,"HTMLPLAIN")
IfIF m.lnRetVal = 0
m.loSession.ProcessReport("report1")
m.loSession.finalize()
Endif ENDIF |
By default, the output is a complete self-contained HTML file. You can also use the HTML_NOSTYLES option to process just the inner HTML, without CSS styles, head or body tags:
Code Block |
---|
language | vb |
---|
linenumbers | true |
---|
|
LOCAL m.loSession, m.lnRetVal
m.loSession = xfrx("XFRX#INIT")
m.lnRetVal = m.loSession.SetParams("output.html",,,,,,"HTMLPLAIN")
IfIF m.lnRetVal = 0
m.loSession.SetOtherParams("HTML_NOSTYLES", .T.)
m.loSession.ProcessReport("report1")
m.loSession.finalize()
Endif ENDIF |
Autoconvert EMF/TIFF to PNG
Because some html previewer doesn't support EMF or TIFF image, you can enable feature for converting EMF/TIFF to PNG. (XFRX 15.5)
Code Block |
---|
m.loSession.SetOtherParams("CONVERTEMF_TIFFTOPNG",.T.) |
Inline images
Images data are in html output file since XFRX 16.0. If you want attain prior behavior, you can call method SetOtherParams().
Code Block |
---|
m.loSession.SetOtherParams("INLINEIMAGES",.F.) |
...
Because HTML viewer in Gmail is very simply than can not show complex which generate XFRX.
You can turn on Gmail compatibility. (XFRF 17.0.0)
Code Block |
---|
m.loSession.SetOtherParams("GMAILCompatibility",.T.) |
...