bb.donnay-software.com

Donnay Software Web Forums
It is currently Mon May 25, 2020 9:36 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Apr 15, 2017 4:48 pm 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
I need to print extended ascii char using DCPRINT in Courier New font.

When I send the char directly to the HP printer, this is what I get
Image

When I use DCPRINT with the printer driver, this is what I get.
Image

This as to do with ANSI and ASCII EXTENDED.
I send the caraters in the CHR(218) CHR(196) 194 191 179 195 197 180 192 193 217
in my print function.

These special characters that creates a box, the are replaced by + and - like this +-------+ instead of a nice line.

Is there a solution for this?

Best Regards

AP


Top
 Profile  
 
PostPosted: Sat Apr 15, 2017 5:24 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4124
Location: Boise, Idaho USA
I tried setting the charset to ANSI but that doesn't work.

Same problem when putting this characters on the screen, except for in a CRT window.

There must be an answer but I'm not sure what to suggest.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Sat Apr 15, 2017 6:59 pm 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
I did not find any solution for this.

So I´m using @ DCPRINT BOX and @ DCPRINT LINE

and it does the job.
So bye bye line mode and this is PAGE MODE.

CHOO CHOO !


Top
 Profile  
 
PostPosted: Sun Apr 16, 2017 9:44 am 
Offline

Joined: Sun Jan 18, 2015 11:43 am
Posts: 512
Location: Slovakia
Hi,
I have a similar problem, where i want print text reports which are in two codepages. Older than 2001 year are in OEM, and new in ANSI. In both are used characters for lines, columns. I use TXT viewer, which automatically swith to OEM or ANSI where detected text rows in code CP852 or Windows 1250. It causes than some reports show in OEM and some in ANSI setting.
But special characters do not show and print correct in both codings. Because only can change characters "-" with"_" then line is fuller
as here
-------
_____

I do not know, if it is possible changing OEM/ANSI in one print report, if yes, then is possible print this characters good.
Try switch OEM/ANSI when print report, what happens

But I do not want go this way, I mean modify to DCPRINT LINE, BOX...
but in my event I have many reports and big reports accumulated from year 1994 n then I must converting it.


Top
 Profile  
 
PostPosted: Sun Apr 16, 2017 10:28 am 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1181
alepap wrote:
I need to print extended ascii char using DCPRINT in Courier New font.
you have to use a ASCI Font or Unicode to print ASCI > 128
you also have to set right Codepage using Unicode.
Code:
[FONT <ocFont> [CODEPAGE <nCodePage>]]                ;


Victorio wrote:
Older than 2001 year are in OEM, and new in ANSI.
so you have to use 2 (or more) Set of Fonts.

i use this technique to show/print Chinese Sign togther with German/English
Attachment:
DbBrowse_chinese_OEM.JPG
DbBrowse_chinese_OEM.JPG [ 158.39 KiB | Viewed 9724 times ]

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group