how to insert into textbox values with Tamil font and retrieve the font and printing the same

Posted by Thirugnanamn under VB.NET on 5/29/2014 | Points: 10 | Views : 2548 | Status : [Member] | Replies : 2
Hi friends,

Please give me the ideas about the tamil font save to database and retrieve the same.

the above same will be printed in text mode printing.

Please anyone can help me.

Thanks

Thiru




Responses

Posted by: Sheonarayan on: 5/29/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Thiru,

You just need to ensure that your database is able to save Tamil font. To do that you need to define data type of the table field as nvarchar instead of varchar, ntext instead of text, nchar instead of char etc and you should be able to save any language data into those fields.

Read little more about nvarchar data type at http://www.dotnetfunda.com/forums/show/16275/what-is-the-difference-between-char-varchar-nvarchar-in-sql and http://www.dotnetfunda.com/forums/show/12292/what-is-the-difference-between-varchar-and-nvarchar.

Hope this helps.


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Thirugnanamn, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thirugnanamn on: 5/30/2014 [Member] Starter | Points: 25

Up
0
Down
hi Narayan,

I got the idea, that is to pass the nvarchar data type to store Tamil font in DB, it's working.but i need to retrieve the value and print the characters(Tamil font) in text mode printing.

i tried in some ideas it shows like special chars(???????????).

Could you please share the code if you have.

Thanks
Thiru

Thirugnanamn, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response