[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2470.0. "printer problems..." by NZOV01::MCKENZIE (Support your right to arm bears) Wed Apr 12 1989 04:39

    Me again folks - I need help again....
    
    I have recently purchased a Panasonic KX-p1180 printer 
    and am starting to fiddle with different options...
    
    I tried to print a dpaint picture but the beast Gurued...since
    I lost my manual some months ago when I moved house I was wondering
    if anyone out there knows of anything special that has to be done
    prior to printing such pictures...
    
    I have read in the printer manual that I can use escape sequences to 
    produce different character densities/width/height etc plus
    bold/underlining etc etc etc 
    
    I am not sure of the format to use...I know that the <ESC> char
    is = to CHR$(27) but I havent had any sucess with the following
    basic statements...
    
    lprint CHR$(27)+[variable]+"text here"
    lprint CHR$(27)+CHR$([variable])+"text here"
    lprint CHR$(27);[variable]+"text here"
    lprint CHR$(27);CHR$([variable])+"text here"
    lprint CHR$(27)+[variable];"text here"
    lprint CHR$(27)+CHR$([variable]);"text here"
    lprint CHR$(27);[variable];"text here"
    lprint CHR$(27);CHR$([variable]);"text here"
    lprint "CHR$(27)+[variable] text here"
    lprint "CHR$(27);[variable] text here"

    None of the above do anything at all - I am hoping to write a 
    program to produce membership cards for my local paintball
    social club....
    
    any ideas??
    
    Thanks in advance
    
    Phil 
        
T.RTitleUserPersonal
Name
DateLines
2470.1Another wayAYOV28::ATHOMSONC'mon, git aff! /The Kelty ClippieWed Apr 12 1989 08:2012
    Try it another way,
    
    bold$    = CHR$(27)+"[7m"     
    offbold$ = CHR$(27)+"[0m"
    lprint bold$
    lprint "This text should be bolded."
    lprint offbold$
    
    Remembering of course to substitute your printer's character sequences
    in place of the [7m and [0m
    
    					Alan T.
2470.2I hope I didn't put a muddy shoe in my mouthMQOFS::DESROSIERSLets procrastinate....tomorrowWed Apr 12 1989 16:289
    I tried to print <esc> sequences from Amiga basic, but they were
    striped from one of the software layers.  I didn't persue that route,
    but I think that you could sent the stuff to a file and then copy
    the file to the printer like so: COPY file to PAR: this should pass
    the <esc>sequences.  I didn't try all this but it seems that short
    of writing your program in C or M2, that is all you can do.
    
    Jean
    
2470.3not a lot of sucess - but still trying...NZOV01::MCKENZIESupport your right to arm bearsWed Apr 12 1989 22:359
    The printer manual however actually uses basic commands with its
    esc sequences in examples....so i would have thought it wouldnt
    be too hard...
    
    I have started reading my manual all over again - mabye theres a
    dip switch set wrong or printer is in wrong mode or something
    
    re .-2 I tried what you suggested - no luck - but thanks anyway
    re .-1 I will try this format also - thank you...
2470.4it gets crazier!!!NZOV01::MCKENZIEHelp STOP the greenhouse effect!Thu Apr 13 1989 20:3528
    Well - I've had some sucess - as per the manual the statement
    
    LPRINT CHR$(14) does indeed turn on  Double width printing
    LPRINT CHR$(20) does undeed turn off Double width printing

    But NOTHING ELSE WORKS
    
    I notice that every statement using the ESC seq CHR$(27)
    doesnt work - the above are WITHOUT escape sequences...
    
    I tried different codes without the escape CHR$(27) in front
    no luck at all...
    
    Then it got weird....
    
    For a short time LPRINT CHR$(27)+CHR$(15);"text" actually set printer
    density to 20 cpi as per the book. GREAT! I thought - I did an
    LPRINT CHR$(18) and print was returned to normal...
    
    I swiched off/switched on printer - tried again (after making sure
    hardware settings were the same) - NO LUCK WITH ANYTHING EXCEPT
    DOUBLE WIDTH - PRINTING
    
    Does ANYONE out there have this model or has anyone any ideas
    I'm gonna phone the store this morning - but I have this awful
    queezy feeling that they wont be able to help...
    
    
2470.5BAGELS::BRANNONDave BrannonThu Apr 13 1989 22:0916
    what printer driver are you using?
    
    I assume AmigaBasic is send the output of the LPRINT command to
    PRT: which means that the printer driver gets to interpret
    your escape sequences.  The AmigaDOS manual, and maybe even
    the A500/2000 manual describe the escape sequences the printer
    driver eats.  It then sends the corresponding printer specific escape
    sequences.
    
    You can send directly to the printer if you send the escape sequences
    to the PAR: or SER: device.  I don't think AmigaBasic will let you
    do that using LPRINT, you probably would need to OPEN the device
    and then PRINT to it.
    
    -Dave
    
2470.6an answer?NZOV01::MCKENZIEHelp STOP the greenhouse effect!Thu Apr 13 1989 23:1916
    Dave - you are absolutely correct (as were previous noters who said
    this)
    
    LPRINT does not understand most sequences, and I'm told by the PCal
    with that if I get any to work its good luck-not good management
    
    what I aparently have to do is
    
    OPEN "LPT1:" FOR OUTPUT AS #1
    PRINT #1 [CODES] ETC
    CLOSE #1
    
    My friend at the store is going to send me a special chart he pulled
    out of a magazine - so I'll post it here for those that are interested
    
    cheers everyone - thanks for your help - I'll let you know the results...