[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Problem printing to Epson printer (Generic driver) (OpenInsight Specific) ==== === At 04 APR 1999 07:46:51PM Barry Stevens wrote: === {{tag>"OpenInsight Specific"}} I am having a problem printing to an Epson compatible printer (Star LC24-15) When I run it under OI I get all the lines with control code formatting at the top. The driver is a generic/text driver. (Direct to printer - No spooling) - tried spooling no good then changed to no spool. Also printed (Accidently) to a HP Deskjet 540 and it came out the same. I then did this little test routine and it comes out as: THIS IS A TEST <-this is in bold XXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX Can anyone help me. Here is the test program Barry .................... subroutine testprint(Void) $insert PRINTER_CONTROLCODES_EPSON printer on print "XXXXXXXXXXXXXXXXXXXX" print " XXXXXXXXXXXXX " print "XXXXXXXXXXXXXXXXXXXX" print BOLDON$:"THIS IS A TEST":BOLDOFF$ printer off return .................... compile insert PRINTER_CONTROLCODES_EPSON equ BOLDON$ to char(27):char(71) equ BOLDOFF$ to char(27):char(72) equ WIDEON$ to char(27):char(87):char(1) equ WIDEOFF$ to char(27):char(87):char(0) equ BEGINFONT1$ to char(15) equ ENDFONT1$ to char(18) equ BEGINFONT5$ to char(27):char(80) equ BEGINFONT6$ to char(27):char(77) equ BEGINFONT7$ to char(27):char(103) equ BEGINFONT15$ to char(27):char(119):char(49) equ ENDFONT15$ to char(27):char(119):char(48) equ SUBSON$ to char(27):char(83):char(1) equ SUBSOFF$ to char(27):char(84) .................................. ---- === At 05 APR 1999 12:59AM Don Bakke wrote: === Barry, I've got your code. Just need to pull out my Epson impact printer and hook it up :) Will advise ASAP. dbakke@srpcs.com [url=http://www.srpcs.com]SRP Computer Solutions[/url] [img]http://www.srpcs.com/srpicon1.gif[/img] ---- === At 05 APR 1999 05:32AM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Group[/url] wrote: === We normally cheat for this and OsOpen "LPT1" and just oswrite to it. This seems to confuse Windows into not screwing us up. amcauley@sprezzatura.com [url=http://www.sprezzatura.com" ]Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 05 APR 1999 12:30PM Cameron Revelation wrote: === Barry, The printer driver is mangling your escape codes; this is expected behavior in Windows. To print directly (as directly as possible in Windows) to a printer, prefix the control codes with an escape. print \1B\: BOLDON$: "THIS IS A TEST": BOLDOFF$ Cameron Purdy Revelation Software ---- === At 06 APR 1999 04:15AM Barry Stevens wrote: === ---- === At 06 APR 1999 05:18AM Barry Stevens wrote: === Re; print \1B\: BOLDON$: "THIS IS A TEST": BOLDOFF$ Doesn't fix the problem, looses the T, prints same spot print \1B\: BOLDON$: "THIS IS A TEST": \1B\:BOLDOFF$ overprints on the next line. I would prefer not to have to resort to Andrews suggestion of OSWrite. Barry ---- === At 06 APR 1999 08:50AM Cameron Revelation wrote: === Barry, Did you post this before or after the "thanks heaps"? Is it working now? Cameron Purdy Revelation Software ---- === At 06 APR 1999 08:06PM Barry Stevens wrote: === Posted after the 'thanks' Cant get to work. Barry ---- === At 06 APR 1999 08:09PM Barry Stevens wrote: === Don If you could test for me, and let me know your results, that would be great. Cam's method did not work. Barry ---- === At 07 APR 1999 09:17AM Cameron Revelation wrote: === Barry, Is there any difference if you put the variable together first then print it? Instead of: print x: y: z Try: Text=x: y: z print Text That leading escape character gets eaten by the engine, and it attempts to pass the rest through as cleanly as possible, which isn't guaranteed in Windows of course. BTW, have you tried using a more specific driver ... one for that printer? Cameron Purdy Revelation Software ---- === At 09 APR 1999 01:29AM Barry Stevens wrote: === Cam None of those suggestions work. I suppose I have to go with A McA method, bummer. Barry ---- === At 09 APR 1999 08:52AM Cameron Revelation wrote: === Barry, Sorry it didn't work out. The method I showed you is used extensively by several customers who ported over large print engines from Arev, like check printing, and needed it to work the same way. I don't know why it isn't working in your case. Cameron Purdy Revelation Software ---- === At 12 APR 1999 07:49AM Barry Stevens wrote: === Cam. One day when you are not too busy , could you find out for sure whether those clients did ANYTHING special at all, like driver settings, if only a certain type of printer can be used. Barry PS. wrote subroutine(to make change easier) for the AMcA method, even worked out how to get the LPT for the current printer...for me that was an achievement. But, now I realise I could have trouble on a network as it is not spooled, but I think there is only one person who does the printing. ---- === At 15 APR 1999 12:13AM Barry Stevens wrote: === Cam. Update. Don Bakke and Tony Slaper have also tested and comes up with the same problem that I am having. Barry [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=09B260EBBC47EF32852567490082A1E1|View this thread on the forum...]]