Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I create a private character.
www.mscoder.wordpress.com/2010/07/18/how-to-type-indian-rupee-symbol-in-text/[^]

but the problem is i can't take printout that notepad through dos
'COPY D:\text.txt \\path\printername'
it's print ? symbol instead of created symbol ...

guide me boss....
Posted
Updated 23-Nov-11 20:37pm
v2
Comments
Sander Rossel 24-Nov-11 2:38am    
Don't use capitals, it's considered as shouting and rude.
[no name] 24-Nov-11 2:38am    
Good question, my 5!

1 solution

There is no such thing as DOS in Windows, unless your are talking of very archaic systems. You must be talking about a console application, in particular CMD.EXE. This is a normal protected-mode 32-bit or 64-bit Windows application, no foolishness.

You can modify the console font, see http://www.johndcook.com/blog/2009/07/24/windows-console-fonts/[^].

You also need to change output encoding. For CMD.EXE, this is the option /U. For System.Console, use the property OutputEncoding, see http://msdn.microsoft.com/en-us/library/system.console.aspx[^].


Wait a minute!.. It's not related to print. The text goes to printer, not to console. I would not bother. This way of printing is archaic and makes no sense at all. You need to print from you C# code, not by command. For example, use the class <a href="http://msdn.microsoft.com/en-us/library/system.console.aspx">http://msdn.microsoft.com/en-us/library/system.console.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/system.console.aspx" target="_blank" title="New Window">^</a>], see the MSDN help and code sample: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^].

—SA
 
Share this answer
 
v2

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