xsharp.eu • WPF app and DBF file - Page 2
Page 2 of 2

WPF app and DBF file

Posted: Sun Jan 17, 2021 1:07 pm
by robert
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

WPF app and DBF file

Posted: Sun Jan 17, 2021 1:38 pm
by Juraj
Hi Robert,
Thanks, with SetAnsi(FALSE) MS Excel open file OK.  Is great to work with your support.

Juraj