|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi
i have problem in printing graphical characters such as -(196) , +(192) etc. It prints some junk characters such as ل which doesnot belong to the specific ascii code, anyone can help |
|
#2
|
|||
|
|||
|
Why (-196 .. 192) range? should it not be (0..255)?
Wich kind of printer? Are you using VB pprinter object or sending it directly to the printer? ![]() |
|
#3
|
|||
|
|||
|
It is not -196 . ascii value is 196 for which the graphical character is (-).
This is the code i am using. If it works correctly a horizontal line will be drawn in a text file. Open "Test.txt" For Output As #1 strTable = "" For intc = 0 To 80 strTable = strTable & chr(196) Next Print #1, strTable But it comes like (للللللللللللللللللللللللللللللللللللل) this. Know the solution for the above. Last edited by decom : February 23rd, 2005 at 03:04 AM. Reason: reply modification |
|
#4
|
|||
|
|||
|
so don't use chr(196) just use "-"
I do this quite often S-
__________________
If you have found a particular post helpful, show your appreciation by adding reputation points to that user by clicking the "scales" image in the upper right had corner of their post. |
|
#5
|
|||
|
|||
|
You program seems to be fine, the problem is not the program it self but the font you are usign for reading the file.
I did long time ago some programs that change "-" for the continuos characters, a shame that it was lost by a computer failure. If the program is sending chr(196) and apears as a strange character in the text file, change the font to linedraw.ttf see the post: http://www.iapetus.ch/article5.html, so you need student.hivolda.no/bakkek/Transport/FONTS/LINEDRAW.TTF. ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > to print graphical characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|