Versions Compared

Key

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

...

Info

This paragraph applies both to VFP 9 and VFP 8. The ShrinkHeight method is implemented both in XFRXListener and XFRXSession class.

When generating HTML documents, XFRX makes the page a bit shorter by default (by 1.65 inches). This is to suppress the bottom of a page to wrap to a new page when printing from the Internet Explorer. Two lines are added to the printed page - at the top and bottom of the page - as header and footer. By calling ShrinkHeight() method, you can either suppress this behaviour by calling:

...

Code Block
ShrinkHeight(20000)

The value sent by ShrinkHeight() method is applied to all output types, not just HTML.

...

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


...

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

...