Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Writing arabic caracters using textstream to receipt printer

564 views
Skip to first unread message

Hicham

unread,
Mar 7, 2004, 10:55:06 AM3/7/04
to corel.wpoffice.paradox10

Hi,
Is there a way to write arabic caracters using textstream to a receipt
printer.?
I can write arabic caractere using paradox report, but for my POS
restaurant, it's faster if I use textstream,
I use P10 SP3 under Windows XP
Hicham

Kasey Chang (send reply to HOTMAIL.COM instead!)

unread,
Mar 7, 2004, 11:05:20 AM3/7/04
to corel.wpoffice.paradox10

"Hicham" <hicham...@wanadoo.fr> wrote in message
news:404b40b4_2@cnews...

You probably need to send the high-ASCII characters using CHR$()
directly
to the text stream.

--KC

Hicham

unread,
Mar 8, 2004, 10:18:31 AM3/8/04
to corel.wpoffice.paradox10

How can I use CHR$, It does not work.
I Tried all possibilities, i got always stranges symbols on my printer, have
you any exemple.?
Thanks
Hicham
"Kasey Chang (send reply to HOTMAIL.COM instead!)" <ksch...@my-deja.com>
wrote in message news:404b42ec$1_2@cnews...

Anders Jonsson

unread,
Mar 8, 2004, 1:59:29 PM3/8/04
to corel.wpoffice.paradox10

Will this work? I assume Kasey mean chr() and not chr$()? If so I don't
think it will work as the the arabic characters are not present in the ASCII
table, or are they?

What _might_ work is if your printer has a code page/font that uses Arabic
characters. In that case you could perhaps send an escape sequence to change
to that font and after that print directly to the printer. My bet is that it
doesn't work that way and that you must use a windows printer driver to get
this to work, but I'm only guessing as I have no experience from Arabic
languages.

Anders

However I doubt that the
"Hicham" <hicham...@wanadoo.fr> skrev i meddelandet
news:404c89a0_2@cnews...

Hicham

unread,
Mar 9, 2004, 5:03:36 AM3/9/04
to corel.wpoffice.paradox10

Thank you Anders for you replay
No it does not work with CHR$, but with CHR, and I tried all posibilities
with CHR, no way,
but if i use font windows driver, i can print in arabic, no problem, but you
know, for a POS program, it's so slow.
thanks anyway
Hicham

"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message
news:404cc24d_1@cnews...

Anders Jonsson

unread,
Mar 9, 2004, 1:07:22 PM3/9/04
to corel.wpoffice.paradox10

> but if i use font windows driver, i can print in arabic, no problem, but
you
> know, for a POS program, it's so slow.
> thanks anyway
> Hicham

I have one POS application and I use the Windows printer drivers. If I use
the printer fonts when I design the "reports" (=receipts) the speed is very
good. If I use a True Type font speed drops dramatically but is still
possible to use. My printers are CBM 231 and CBM 1000.

I guess with arabic language the speed would be worse.

Anders

Hicham

unread,
Mar 9, 2004, 1:29:06 PM3/9/04
to corel.wpoffice.paradox10

In Fact, the problem is not only the speed, but the speed is one, the second
problem is that I have to printer two reciepts, one on DotMatrix Star 500
printer for the kichen and one on a Star 600 Thermal printer for the reciept
client, when I change the default printer between theses two printers every
time i print , The dialog printer freez, the printing task in the job
printer windows becom beger and beger(the size) the only solution is to stop
paradox by Ctrl+Alt+Delete, and this problem is only when I change the
default Printer between Two Star Printers.
If i use an Epson printer for the kichen and a Star printer for the receipt,
I Have no Problem. most of all our clients have Star printers, because of
that I want to print using writeline directly to the port, but no way with
arabic fonts
If you have any idea about that, i will be happy to see it
Thank you again Anders
Hicham


"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message

news:404e02d3_2@cnews...

Tony McGuire

unread,
Mar 9, 2004, 1:34:56 PM3/9/04
to corel.wpoffice.paradox10

How about having 2 instances of Paradox running?

One with one printer set as default, the other with the other printer set as
default.

Then communicate between the 2 instances with a table; second instance is on
a timer checking table for new 'job'.

When a new job gets posted to the table, it runs/prints it.

Not saying you CAN do this in your environment, but might be worth a looksee
if it'll get rid of the 'switch printers' issue.


--
--
Paradox Addons http://www.thedbaddons.com
Paradox Support http://www.thedbcommunity.com/support/

Tony McGuire
If replying by e-mail, reverse the ATs and DOTs

"I woke up and was able to get myself out of bed.
Being that fortunate, what's to complain about?"
_____________


Anders Jonsson

unread,
Mar 9, 2004, 2:37:04 PM3/9/04
to corel.wpoffice.paradox10

> If you have any idea about that, i will be happy to see it

I remember you posted about this problem before and the problem with
switching printers.

How do you switch printer? Could you show the code?

Anders


Hicham

unread,
Mar 10, 2004, 3:00:14 AM3/10/04
to corel.wpoffice.paradox10

ReportName = SetPrinterDefault(ty) ;** ty is a type of document
IF ReportName <> Blank() THEN InvPrt = ReportName ENDIF
Etat.print(InvPrt)
PrintReturn(ty)
ENDIF


Method SetPrinterDefault(DocType String) String
ReportName = Blank()
CompName=readEnvironmentString("COMPUTERNAME")
IF NOT tc.open(":data:docprint") THEN ErrorShow() Return "False" ENDIF
if tc.locate("ref_type",DocType,"computer_name",CompName) then
if tc."report_name"<>blank() then
ReportName=tc."report_name"
endif
stDrvName = tc."printer_name" ;*** the printer that i want to use like
"Star TSP643 Raster Printer"
TRY TC.close() ONFAIL ENDTRY
IF stDrvName <> Blank() THEN
enumPrinters(arPrinters)
for i from 1 to arPrinters.size()
stPrnInfo = arPrinters[i]
stPrnInfo.breakApart(arPrnNames, ",")
if arPrnNames[2] = stDrvName then
IF NOT printerSetCurrent(stPrnInfo) THEN ErrorShow() Return "False"
ENDIF
endif
endfor
ENDIF
EndIf
TRY TC.close() ONFAIL ENDTRY
Return ReportName
endMethod

method PrintReturn(VarType String)
CompName=readEnvironmentString("COMPUTERNAME")
IF NOT tc.open(":data:docprint") THEN ERrorShow() Return ENDIF
if tc.locate("ref_type",VarType,"computer_name",CompName) then
stDrvName = tc."Default_printer_name" ;*** the name of default printer
like "Star SP342 (J/Pcut)"
IF stDrvName = Blank() then tc.close() Return ENDIF
enumPrinters(arPrinters)
for i from 1 to arPrinters.size()
stPrnInfo = arPrinters[i]
stPrnInfo.breakApart(arPrnNames, ",")
if arPrnNames[2] = stDrvName then
IF NOT printerSetCurrent(stPrnInfo) THEN ErrorShow() ENDIF
endif
endfor
endif
tc.close()


Hicham

"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message

news:404e1858_3@cnews...

Anders Jonsson

unread,
Mar 10, 2004, 1:07:34 PM3/10/04
to corel.wpoffice.paradox10

So basically you are using printerSetCurrent which should be OK. You think
this method take too long?

The switching of printers shouldn't take much time, a second or two max. Is
that what you experience? Is that too long?

Anders

Hicham

unread,
Mar 10, 2004, 2:29:18 PM3/10/04
to corel.wpoffice.paradox10

No, It's not too long to switch between printers, it's long to print using
paradox report, for a POS the Printing speed is so important,
but as i explained before, my main problem is switching between two printers
with the same model in two differente port, Start Printers.
When I switch between two Star printers, Paradox freez and I can do nothing
, i stop paradox by Ctr+Alt+Del, because of that i look to use TextStream
insted of windows printer, but i can not use writeline to print arabic
fonts, arabic fonts work olny by windows drivers.
I think the solution is to use two differente model printers

Hicham

"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message

news:404f5479$1_1@cnews...

Anders Jonsson

unread,
Mar 11, 2004, 3:13:53 AM3/11/04
to corel.wpoffice.paradox10

> No, It's not too long to switch between printers, it's long to print using
> paradox report, for a POS the Printing speed is so important,

Indeed it can be.


> but as i explained before, my main problem is switching between two
printers
> with the same model in two differente port, Start Printers.
> When I switch between two Star printers, Paradox freez and I can do
nothing

Aha, now even I get it! :-) I have never tried to swich between two printers
of the same make and model on different ports. Have you verified this
problem also with other "normal" printers like a HP Laserjet?

> I think the solution is to use two differente model printers

Yes, or maybe use two different printer drivers for the same printer (if
possible)?

Anders


0 new messages