Skip to contentSkip to conversation

Problem with printing on change of printer

DISCUSSION Victor Warner 4 participants 7 messages Jan 24, 2008 – Jan 29, 2008

lore
Share & tools
lore
#0 lore raw

I am use dosemu 1.4 under Xandros Professional 4.0 Desktop.

Until recently I have been using a HP LaserJet printer and have had no difficulty printing from DOS programs under Dosemu to the printer.

The .dosemurc~ (located in home directory) reads:

$_hdimage = "/disks/D/dos" $_printer_command = "lpr -l" $_printer = "HPLJ3055" $_layout="uk" $_X_keycode=(off)
$_X_font="vga12x30"
$_hogthreshold="1"
$_xms="16834"
$_xms="16834"
$_X_title="Dosemu (as user)"

I have now changed to a Lexmark C530dn (which I understand is a pcl and postscript printer). I changed in the .dosemurc~ file only
the $_printer = "HPLJ3055" line to $_printer = "lexmarkc530dn" (ie the name I called the printer in Linux), and used the right printer driver in the dos programs (WordPerfect 5.1/6.2) but nothing has printed.

I ran dosemu from console and on printing the following message was printed:

"lpr: error - unable to print file: client-error-document-format-not-supported"

I do not know how to fix this problem. Help with this would be greatly appreciated.

Victor Warner.

#1 lore raw
Quoted 25 lines · Victor Warner

I am use dosemu 1.4 under Xandros Professional 4.0 Desktop.

Until recently I have been using a HP LaserJet printer and have had no difficulty printing from DOS programs under Dosemu to the printer.

The .dosemurc~ (located in home directory) reads:

$_hdimage = "/disks/D/dos"
$_printer_command = "lpr -l"
$_printer = "HPLJ3055"
$_layout="uk"
$_X_keycode=(off)
$_X_font="vga12x30"
$_hogthreshold="1"
$_xms="16834"
$_xms="16834"
$_X_title="Dosemu (as user)"

I have now changed to a Lexmark C530dn (which I understand is a pcl and postscript printer). I changed in the .dosemurc~ file only the $_printer = "HPLJ3055" line to $_printer = "lexmarkc530dn" (ie the name I called the printer in Linux), and used the right printer driver in the dos programs (WordPerfect 5.1/6.2) but nothing has printed.

Quoted 5 lines

I ran dosemu from console and on printing the following message was printed:

"lpr: error - unable to print file:
client-error-document-format-not-supported"

I suppose you use cups, do you? If yes check your cups logs for details. There's probably some filter missing. If cups logs are not good enough set log level to debug in your cupsd.conf and try again.

Regards,

Signature · 2 lines
Rafał Cygnarowski
[email protected]
#2 lore raw

Thank you for the reply.

I do use cups, but my technical skills are low so although I can see the relevant cups files I do not what I should be looking for.

Would it be possible to let me know what I should be looking for/doing. I would be very grateful.

Victor Warner.

Quoted 38 lines · Rafa? Cygnarowski

Dnia czwartek, 24 stycznia 2008, Victor Warner napisa?:

Quoted 25 lines

I am use dosemu 1.4 under Xandros Professional 4.0 Desktop.

Until recently I have been using a HP LaserJet printer and have had no difficulty printing from DOS programs under Dosemu to the printer.

The .dosemurc~ (located in home directory) reads:

$_hdimage = "/disks/D/dos"
$_printer_command = "lpr -l"
$_printer = "HPLJ3055"
$_layout="uk"
$_X_keycode=(off)
$_X_font="vga12x30"
$_hogthreshold="1"
$_xms="16834"
$_xms="16834"
$_X_title="Dosemu (as user)"

I have now changed to a Lexmark C530dn (which I understand is a pcl and postscript printer). I changed in the .dosemurc~ file only the $_printer = "HPLJ3055" line to $_printer = "lexmarkc530dn" (ie the name I called the printer in Linux), and used the right printer driver in the dos programs (WordPerfect 5.1/6.2) but nothing has printed.

Quoted 6 lines

I ran dosemu from console and on printing the following message was printed:

"lpr: error - unable to print file:
client-error-document-format-not-supported"

I suppose you use cups, do you? If yes check your cups logs for details. There's probably some filter missing. If cups logs are not good enough set log level to debug in your cupsd.conf and try again.

Regards,

#3 lore raw

Dnia czwartek, 24 stycznia 2008, napisałeś:

Quoted 7 lines

Thank you for the reply.

I do use cups, but my technical skills are low so although I can see the relevant cups files I do not what I should be looking for.

Would it be possible to let me know what I should be looking for/doing. I would be very grateful.

1. Search files in your /var/log/cups directory for "unknown format" phrase (or sth like that).

2. Because you set up your program to send PCL commands to printer you can although try to create RAW printer in cups (then no filters should be used for printing and everything created by program will be send to printer "directly").

Regards,

Signature · 2 lines
Rafał Cygnarowski
[email protected]
#4 lore raw

Thank you for the reply.

The (real) printer is a pcl/postscript printer (although a LexMark, I used a HPLJ Color 4500 printer driver). And in DOS/Wordperfect I set up a postscript printer driver for HPLJ Color 4500)

I set up another machine in exactly the same way as the problem machine, and have no problem in printing . On the problem machine the cups error.log produces the following entries:

"I [29/Jan/2008:09:20:01 +0000] Default destination set to 'HPLJ4500' by 'root'. E [29/Jan/2008:09:20:12 +0000] print_job: Unsupported format 'application/vnd.cups-raw'! I [29/Jan/2008:09:20:12 +0000] Hint: Do you have the raw file printing rules enabled?"

Is something missing from the Dosemu setup or in CUPS?

Victor Warner

Quoted 11 lines · Rafał Cygnarowski

Dnia czwartek, 24 stycznia 2008, napisałeś:

Quoted 8 lines

Thank you for the reply.

I do use cups, but my technical skills are low so although I can see the relevant cups files I do not what I should be looking for.

Would it be possible to let me know what I should be looking for/doing. I would be very grateful.

Quoted 6 lines

1. Search files in your /var/log/cups directory for "unknown format" phrase (or sth like that).

2. Because you set up your program to send PCL commands to printer you can although try to create RAW printer in cups (then no filters should be used for printing and everything created by program will be send to printer "directly").

Regards,

-
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

#5 lore raw
Quoted 8 lines · Victor Warner

"I [29/Jan/2008:09:20:01 +0000] Default destination set to 'HPLJ4500' by 'root'. E [29/Jan/2008:09:20:12 +0000] print_job: Unsupported format 'application/vnd.cups-raw'! I [29/Jan/2008:09:20:12 +0000] Hint: Do you have the raw file printing rules enabled?"

Is something missing from the Dosemu setup or in CUPS?

You are missing something in CUPS. Goto to /etc/cups/ and search the files there for raw printing and change the files to enable it.

Reinhard

#6 lore raw
In reply to Victor Warner

As Reinhard write, it is cups problem.
In "/etc/cups/mime.convs" you must uncomment line:

application/octet-stream application/vnd.cups-raw 0 -

Line in "/etc/cups/mime.types":

application/octet-stream

should be uncommented too (althought not necessary when You specify "-l" lpr switch - equivalent of "-o raw")

Franta Hanzlik

Quoted 44 lines · Victor Warner

Thank you for the reply.

The (real) printer is a pcl/postscript printer (although a LexMark, I used a HPLJ Color 4500 printer driver). And in DOS/Wordperfect I set up a postscript printer driver for HPLJ Color 4500)

I set up another machine in exactly the same way as the problem machine, and have no problem in printing . On the problem machine the cups error.log produces the following entries:

"I [29/Jan/2008:09:20:01 +0000] Default destination set to 'HPLJ4500' by 'root'.
E [29/Jan/2008:09:20:12 +0000] print_job: Unsupported format 'application/vnd.cups-raw'!
I [29/Jan/2008:09:20:12 +0000] Hint: Do you have the raw file printing rules enabled?"

Is something missing from the Dosemu setup or in CUPS? Victor Warner

application/octet-stream

Quoted 17 lines · Rafał Cygnarowski

Dnia czwartek, 24 stycznia 2008, napisałeś:

Quoted 7 lines

Thank you for the reply.

I do use cups, but my technical skills are low so although I can see the relevant cups files I do not what I should be looking for.

Would it be possible to let me know what I should be looking for/doing. I would be very grateful.

1. Search files in your /var/log/cups directory for "unknown format" phrase (or sth like that).

2. Because you set up your program to send PCL commands to printer you can although try to create RAW printer in cups (then no filters should be used for printing and everything created by program will be send to printer "directly").

Quoted 8 lines
Quoted 1 line

Regards,

-
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

!DSPAM:479f0381255687342354040!

-
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