Sameer

Sameer

  • NA
  • 2
  • 0

Tabular data in .txt file

Mar 5 2009 6:44 AM

Hello All,

I'm creating .txt file which contains data in tabulat format.

I'm using streamwriter.WriteLine(strTemp) method to write in file.

My problem is that 4 columns of tabular data are multilingual (depending upon selected language in application these are read from resource) so when selected language is Japanese or Chinese, data in rows is not aligned to columns..

e.g.

Col1     col2      Col3

Test1    Test2    Test3

Test4    Test5    Test6

But when headers are Japanse or Chinese, row data not aligning with headers..

I'm using "       " to seperate 2 strings from each other. I also dont know font (otherwise i can caluculate string width & accordingly format it)


Answers (1)