WPF app and DBF file

This forum is meant for questions and discussions about the X# language and tools
User avatar
robert
Posts: 4474
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

WPF app and DBF file

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

WPF app and DBF file

Post by Juraj »

Hi Robert,
Thanks, with SetAnsi(FALSE) MS Excel open file OK.  Is great to work with your support.

Juraj
Post Reply