printing raw ascii text to a file from a windows program

Questions about Wine on Linux
Locked
Dexter
Newbie
Newbie
Posts: 2
Joined: Tue Aug 06, 2013 10:00 am

printing raw ascii text to a file from a windows program

Post by Dexter »

Hello, any help greatly appreciated.
I have installed a windows MSACCESS-based program that works well under wine.
The program has an option to save printer listings in ascii/text format but I do not know how to
create a "printer" that is similar to windows text printer (I actually want this saved as a text file)

I need the following equivalent printer on Linux (ubuntu or mint latest)

On windows control panel I have a printer with the following characteristics:
Port: FILE:
Description: Print to File
Printer: Generic / Text Only

Many thanks
Dexter
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: printing raw ascii text to a file from a windows program

Post by dimesio »

If the program can actually save the file in plain text, you should just be able to print the file from any text editor on any printer.
Dexter
Newbie
Newbie
Posts: 2
Joined: Tue Aug 06, 2013 10:00 am

Re: printing raw ascii text to a file from a windows program

Post by Dexter »

Hi,
the program only has a dialog from which to "print" a document.
If I select another printer, which under wine is only my regular printer, it spits out WINEPS output, which I can browse w/ ePdf.
ps2ascii or ps2txt cannot extract the text from this.

What I need is a printer that "looks like" a text printer to the program so it knows to produce only as ascii file.
On Windows I choose the "Generic / Text" printer and select a check box to save the print output to a file.
Becasue the printer I choose is a generic text printer, the program spits out a text file.
I hope that makes it clearer.
Thanks, Dexter
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: printing raw ascii text to a file from a windows program

Post by dimesio »

Wine uses whatever printers you have installed in CUPS. I don't know if there is a CUPS driver that will "print" to a plain text file (there is one for PDF), but that's what you would need to accomplish what you want to do. Ask your distro, google around for it.
Locked