1. Printing ANSI characters

I had a problem earlier where I couldn't get French language characters (the
codes above 127) into my Euphora dialog, and David Cuny quickly solved it
with:

>(line 703):
>
>  if key >= ' '
>  and key <= 126 then
>
>so change the 126 to 255 and you can get higher values.
>


Now that I can input a sequence containing the special characters, I need
to be able to print them onto paper as well as importing into
Microsoft Office programs.

I am able to save the data properly and import it fine,
but I cannot get the characters with ANSI codes >127 to print.
I simply get nothing after this point in the sequence.
I have tried puts(), print() and printf() in various combinations.

**
Is anyone aware of a way to print this extended set from a
DOS based Euphoria program?


David Owens
david.owens at gnb.ca
(506) 453-6809

new topic     » topic index » view message » categorize

2. Re: Printing ANSI characters

On 3 Nov 2000, at 11:23, Owens, David (OCEO) wrote:

> I had a problem earlier where I couldn't get French language characters (the
> codes above 127) into my Euphora dialog, and David Cuny quickly solved it
> with:
>
> >(line 703):
> >
> >  if key >= ' '
> >  and key <= 126 then
> >
> >so change the 126 to 255 and you can get higher values.
> >
>
>
> Now that I can input a sequence containing the special characters, I need to
> be able to print them onto paper as well as importing into Microsoft Office
> programs.
>
> I am able to save the data properly and import it fine,
> but I cannot get the characters with ANSI codes >127 to print.
> I simply get nothing after this point in the sequence.
> I have tried puts(), print() and printf() in various combinations.
>
> **
> Is anyone aware of a way to print this extended set from a
> DOS based Euphoria program?

Try dos window help on each of these MSdos commands, in a dos
window, or after booting to dos, type (for example) "help CHCP" and drill on
down to CHCP in the dos help screen. I included a few parms for you
where i could, to give you a general idea, using Canadian French chars.

MODE CON CODEPAGE PREPARE= (etc)

CHCP 863

COUNTRY=033,437

KEBD CF,863 /ID:058

NLSFUNC C:\dos\country.sys

I would not use SELECT if you can avoid it, because it is almost a
complete reinstall of dos, but if you haveto, the French ID code is 033 and
the keyboard code is FR .

You may need to set the printer to a different font setting or to bitmap
setting. Millions of different printers out there, i am lost on them.

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu