"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
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...
"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message
news:404cc24d_1@cnews...
> 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
"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message
news:404e02d3_2@cnews...
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?"
_____________
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
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...
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
"Anders Jonsson" <g...@takethisawaybredband.net> wrote in message
news:404f5479$1_1@cnews...
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