I create an XML file based on the dataGridView. If there are Russian words in the column headings, then this column is empty in the file. How to solve this problem?
- Will you show us the relevant part of the code, or do we need to guess exactly where you chose the wrong encoding? - VladD
- Here is the code, sorry, no need to guess. pastebin.com/T1rwQBjs I changed the Encoding.Unicode to Encoding.GetEncoding (1251) and Encoding.GetEncoding ("Windows-1251"), but he did not read the file at all. - elfinorr
- @elfinorr: Everything looks right in the code. And why do you think that there is no text file? How do you read the file? - VladD
- I added the CrystalReport component, through the "Standard Report Creation Wizard" - "Create New Connection" - "ADO.NET" - And I specify the path to the xml file. And if you do this when the fields have Russian names, then I can’t add fields to the report in the next step, just nothing happens. Well, not that not, but it just does not appear, I think. Just an empty space there. - elfinorr
- @elfinorr: Did you watch the file yourself? Text editor? Maybe the problem is CrystalReport? - VladD
|