Click here to Skip to main content
16,012,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to change font in rtf file by using streamwrite
Posted

1 solution

 
Share this answer
 
Comments
kalaiking 18-Nov-11 6:58am    
it's not time to joke..
Richard MacCutchan 18-Nov-11 7:03am    
I'm not joking; it's about time you made some effort to learn how to use the available tools to do some basic research for yourself.
kalaiking 18-Nov-11 7:28am    
using (StreamWriter sw =
new StreamWriter(Application.StartupPath+"\\text.rtf"))

{

sw.WriteLine("----------------------------------------");
sw.Write("Total : ");
sw.WriteLine("----------------------------------------");
sw.Write("Net Total : ");
sw.WriteLine("----------------------------------------");


}
i want to convert first one is in "courier New" ..
second one is to "Rupee Foradian"

guide me
Richard MacCutchan 18-Nov-11 7:45am    
Go and look at the link I posted for you above. You will find full details about the format of RTF files and how to use different fonts and character sets in the very first link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900