Virtual printer

Here you can discuss the development of patches

Re: Virtual printer

Postby h-a-l-9000 » 2006-1-22 @ 09:42

The font files are in your Dosbox directory?
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Virtual printer

Postby mot » 2006-1-25 @ 03:15

Thanks, I just tried that. Now my printer prints 2 lines:

12345X@PJL ENTER LANGUAGE PCL
oOoI t 01 6dl Xl 000XT~, 1 TROTDI SPI FTI 0, 50CF3, 4LB, ~: *r- 3UOGp(

I tried a different printer in WP51, a Laserjet III, and it gives me one line of the same type of gibberish. Do I need a certain printer driver for wp51 to print correctly?
mot
Newbie
 
Posts: 4
Joined: 2006-1-22 @ 01:16
Location: Santa Rosa, California, USA

Re: Virtual printer

Postby h-a-l-9000 » 2006-1-25 @ 05:59

LANGUAGE PCL - wrong printer driver.
Use something that sounds like ESC/P, ESC/P2, Epson pinwriters like LQ850.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Virtual printer

Postby iampiti » 2006-1-25 @ 17:50

Hey Mot, there's a method to print out of wp51 without needing this dosbox patch.
Select a PostScript printer and search for an option to print to a file(I don't remember where exactly, sorry).
Print your document.
As instructed, wp will print to a file. Now you have a postscript file that you can print in your host os.
Iampiti
iampiti
Member
 
Posts: 137
Joined: 2003-9-04 @ 10:30

Re: Virtual printer

Postby mot » 2006-1-26 @ 14:23

forgive my ignorance, but how do I actually print a postscript file? I looked briefly at ghostscript, and seems complicated. If that's the best way to go, I'll hunker down and do it. It really needs to be easy from the user standpoint, I don't care if it's hard for me to set up. The output *has* to be PERFECT on the printed page, though.
mot
Newbie
 
Posts: 4
Joined: 2006-1-22 @ 01:16
Location: Santa Rosa, California, USA

Re: Virtual printer

Postby `Moe` » 2006-1-27 @ 10:25

On Windows you should definitely get Ghostview to accompany Ghostscript. It's a viewer for PS and PDF that uses Ghostscript and hides the ugly command line stuff. Of course you can print from that program.

If you want to have it automated in a batch file, you will have to read the docs, but IIRC it should be something like this:

gs -dDEVICE=<your printer model> -sOutputFile=LPT1 <input file>

use gs --help to get a list of printer models (drivers) available.
(Not tested - it's been some time since I used gs.)
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: Virtual printer

Postby mot » 2006-1-28 @ 14:19

Thanks to everyone for all the support. I'll try some of this when the house is awake.
mot
Newbie
 
Posts: 4
Joined: 2006-1-22 @ 01:16
Location: Santa Rosa, California, USA

Re: Virtual printer

Postby giapraki » 2006-1-31 @ 18:01

after downloading 0.61 executable from a post from a previous page, and had a look at the commands :

[printer]
printer -- Enable printer emulation.\n"
dpi -- Resolution of printer (default 360).
width -- Width of paper in 1/10 inch (default 85 = 8.5'').
height -- Height of paper in 1/10 inch (default 110 = 11.0'').
output -- Output method for finished pages:

png : Creates PNG images in the DOSBOX directory
ps : Creates Postscript documents in the DOSBOX directory (default)
bmp : Creates BMP images (very huge files, not recommend)\n"
printer : Send to an actual printer (Print dialog will appear)
multipage -- Adds all pages to one Postscript file or printer job until ALT-F8 is pressed.


i tried to change my config as following :

output=surface

[printer]
printer=true
output=printer

the problem is that i use an old logistics program. So when i print and trye to print in an Epson Compatible printer LX-1505 (i think) it shows the data on-screen and does not direct it to printer.

on tha contrary when i print outside the logisitcs program, in pure dosbox black screen and give
echo mike >> prn
or
echo mike >> lpt1

it prints mike in the dot matrix printer.
why i cannot direct the output from within the application to the dot matrix printer ?
giapraki
Newbie
 
Posts: 2
Joined: 2005-12-24 @ 19:18

Re: Virtual printer

Postby mirekluza » 2006-1-31 @ 18:36

giapraki wrote:the problem is that i use an old logistics program. So when i print and trye to print in an Epson Compatible printer LX-1505 (i think) it shows the data on-screen and does not direct it to printer.

This does not make sense... Why would any program enabled to choose a printer and then showed the printed things just on the screen...
Three possibilities:
a) There is a button "Print" etc. that you overlooked...
b) The program somehow does not work with the printer patch (try printing from another program in DOSBOX - does it work?)
c) Authors of the programm were mad - the normal uses expects that "Print" prints, so why not to change it... :-)

Mirek
mirekluza
DOSBox Moderator
 
Posts: 1697
Joined: 2003-8-21 @ 04:19

Re: Virtual printer

Postby Jave27 » 2006-2-01 @ 17:14

Hey all, new to the conversation.

mirekluza: Would it be worth it to fork the dosbox branch into a dosbox_printer project? No offense to any of the dosbox devs, but printer support from dosbox would be a great addition, and I don't think it would add bloat at all to the original branch. But, if they don't want it for some reason, then it might be a good time to branch off. Obviously, sync up frequently, but it would be nice to have a "stable" branch to work on just the printing issues until they feel comfortable enough with it to take it back into the main branch.

I don't know much about the dosbox internals, but I'd be willing to help out with the endeavor.
Jave27
Newbie
 
Posts: 1
Joined: 2006-2-01 @ 17:09
Location: Michigan, US

Re: Virtual printer

Postby mirekluza » 2006-2-01 @ 19:06

I am just a simple forum moderator... :-) But IMHO in this situation keeping the patch seems the simplest solution. IMHO branches would be more complicated...

Mirek
mirekluza
DOSBox Moderator
 
Posts: 1697
Joined: 2003-8-21 @ 04:19

Re: Virtual printer

Postby HunterZ » 2006-2-01 @ 19:12

The way things work right now in the DOSBox community, it would probably be best to just maintain a patch that is compatible with current CVS. That way, one or more of the unofficial CVS build releasers is likely to include it in their build.
You're perfect, yes it's true...but without me, you're only you.
User avatar
HunterZ
l33t++
 
Posts: 5777
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: Virtual printer

Postby flatloop » 2006-2-25 @ 01:12

Greets everyone, I'm new to dosbox, and from my readings, I can tell that there is a lot to learn. I've spent a lot of time trolling the posts about lpt emulation/passthrough and have a quick newbie type question.

Will the patch allow me to use the LPT port with a laplink cable?

More specifically, I have dosbox loaded on my linux box, and want to use a dos utility to flash my thin clients, this utility only runs over a parallel port via laplink-type cable.

Any suggestions? Thanks in advance
flatloop
Newbie
 
Posts: 2
Joined: 2006-2-25 @ 01:00

Re: Virtual printer

Postby `Moe` » 2006-2-25 @ 11:24

No it won't. This is an emulated dot-matrix printer. It does not access your real LPT port in any way.
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: Virtual printer

Postby flatloop » 2006-2-25 @ 14:44

Thanks, I was afraid of that.
Back to the drawingboard.
flatloop
Newbie
 
Posts: 2
Joined: 2006-2-25 @ 01:00

Re: Virtual printer

Postby asitnik » 2006-3-06 @ 05:23

Hello, Fizzban!

Could you email me the version with the printing support, the fonts and syntax for configuration? I need it desperately! asitnik - a-t - yahoo d.o.t c-o-m! While I am at it, let me sing the praises of this program! It has laready solved 95% of a very difficult problem for me!

Tanks in advance!

Ari
asitnik
Newbie
 
Posts: 12
Joined: 2006-3-06 @ 05:05

Re: Virtual printer

Postby `Moe` » 2006-3-06 @ 10:26

Why not download it yourself? All information is present here. You may want to check out the developer forum and look for a CVS build.
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: Virtual printer

Postby asitnik » 2006-3-06 @ 13:23

Because the patch, as posted on sourceforge, has showed a compiling problem to at least one person. In any case, I myself am not a developer and wouldn't know how to compile that patch into the program. Additionally, all references to patches or fonts posted "here" or "there" point back to the same 2 or 3 messages, without ever actually pointing to the program or fonts.
asitnik
Newbie
 
Posts: 12
Joined: 2006-3-06 @ 05:05

Re: Virtual printer

Postby `Moe` » 2006-3-06 @ 16:58

That's why I suggest you get a CVS build instead of compiling yourself.
User avatar
`Moe`
Oldbie
 
Posts: 1169
Joined: 2004-4-29 @ 01:06
Location: Oldenburg, Germany

Re: Virtual printer

Postby asitnik » 2006-3-06 @ 18:03

And yet, the only CVS I can get with some type of printer support is the one from ykhwong, but not from the one from Fizzban. Unfortunately, Fizzvban's CVS is nowhere on the list, so I must resort to asking him to send me the CVS and the fonts. Am I being unreasonable to ask for a private e-mail with a couple of CVS files that are not on the list? asitnik a-t yahoo d.o.t. c-o-m
asitnik
Newbie
 
Posts: 12
Joined: 2006-3-06 @ 05:05

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 0 guests