Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 22nd, 2005, 01:49 AM
decom decom is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 26 decom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 29 m 14 sec
Reputation Power: 0
Question to print graphical characters

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

Reply With Quote
  #2  
Old February 22nd, 2005, 09:00 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
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?

Reply With Quote
  #3  
Old February 23rd, 2005, 03:02 AM
decom decom is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 26 decom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 29 m 14 sec
Reputation Power: 0
Question reply

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

Reply With Quote
  #4  
Old February 23rd, 2005, 10:26 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
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.

Reply With Quote
  #5  
Old February 24th, 2005, 08:53 AM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > to print graphical characters


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway