Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

This feature requires .NET framework 3.5. The HTML is produced by a .NET console application which reads XML files generated by XFRX and coverts them. This console application (xfrxt.exe) needs to be distributed along with the application.

 


This output type works in a similar fashion to the plain excel output type: The objects on the page are aligned into a grid, each object going into a separate cell, and then the output is layed out as a table. Lines and rectangles are displayed as table cell borders. Fonts, colors and sizes are defined via CSS. 

This solution produces a clean, fast rendering, cross-browser compatible HTML output, suitable for web pages or emails. (Click here for a sample document: Sample1

The output is invoked by "HTMLPLAIN" output type parameter:

...

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
languagevb
linenumberstrue
loSession = xfrx("XFRX#INIT")
lnRetVal = loSession.SetParams("output.html",,,,,,"HTMLPLAIN")
If lnRetVal = 0
    loSession.SetOtherParams("HTML_NOSTYLES", .T.)
    loSession.ProcessReport("report1")
    loSession.finalize()
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
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
loSession.SetOtherParams("INLINEIMAGES",.F.)


Gmail compatibility

Because HTML viewer in Gmail is very simply than can not show complex which generate XFRX.
You can turn on Gmail compatibility. (XFRF 16.2.0)

...

 

Code Block
loSession.SetOtherParams("GMAILCompatibility",.T.)