Re: printing

Andrew Joakimsen <[email protected]>
Newsgroups org.kernel.vger.linux-msdos
Message-ID <[email protected]>
On Thu, Nov 18, 2010 at 18:18, Vedran Vucic <[email protected]> wrote:
> Hello,
>
> When I want to print from my DOS application I cannot print on my USB
> HP LP1020 printer. My printer is named Laserprinter in my cups
> configuration. When I print from terminal using command
> lpr -P Laserprinter nameoffile
> it works well.
> You can find my dosemu.conf on this link:
> http://pastebin.ca/1995898
>
> Please advise.
>
> Thanks,
>
> Veki
> --
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

The HP 1020 is not a PCL or postscript printer. You must set your DOS
application to print to a PostScript printer so CUPS can translate it.
There might be a way to convert the output on-the-fly if it's not
PostScript to print it with CUPS but I am not aware of how that
functions. I stick to printers that support PCL and PostScript as they
are compatible with just about anything. Do you see a completed job in
CUPS?

I use a script to e-mail documents "printed" to PCL format, maybe it
can help you troubleshoot:

#! /bin/bash
[email protected]
[email protected]
SUBJECT="Email Report"

# Config above
# Do not edit below
EPOCH=`date +%s` || exit 1
PRNTFILE=`mktemp /root/printjobs/pdfprint.XXXXXXXXXX` || exit 1
PDFFILE=`mktemp /root/pdfs/XXX` || exit 1
rm $PDFFILE
cat "$@" >> $PRNTFILE
pcl6 -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=$PDFFILE$EPOCH.pdf $PRNTFILE
#rm $PRNTFILE
echo Your report is attached as a .pdf file. |  mail -a
$PDFFILE$EPOCH.pdf -r $EMAIL_FROM -s "$SUBJECT" $EMAIL_TO
~

-- 
Med Vennlig Hilsen,

A. Helge Joakimsen
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.