When using XFRX_CopyToXLSX(), “Variable XFRX_FORMATCOL_CP is not found" error shows up.

KB-20190220-02

Version

18.2.0

Cause

Missing constant definiton in xfrx.h.

Workaround

XFRX with source code

Add next row to xfrx.h and recompile xfrx.prg

#DEFINE XFRX_FORMATCOL_CP        14 && Field Codepage 


XFRX without source code

Create public variable  XFRX_FORMATCOL_CP

PUBLIC XFRX_FORMATCOL_CP 
XFRX_FORMATCOL_CP =14
XFRX_CopyToXLSX(...)