WPF app and DBF file
Posted: Sun Jan 17, 2021 1:07 pm
Juraj,
To be VO compatible the DBF creation follows the SetAnsi() setting. With SetAnsi(TRUE) the first byte in the file is 0x07 (without memo) or 0x87 (with memo). With SetAnsi(FALSE) this is 0x03 or 0x83.
Try to call SetAnsi(FALSE) before creating the file (and restore it afterwards).
I think that will create a file that Excel also likes.
Robert
To be VO compatible the DBF creation follows the SetAnsi() setting. With SetAnsi(TRUE) the first byte in the file is 0x07 (without memo) or 0x87 (with memo). With SetAnsi(FALSE) this is 0x03 or 0x83.
Try to call SetAnsi(FALSE) before creating the file (and restore it afterwards).
I think that will create a file that Excel also likes.
Robert