General discussion

Locked

Screen To Text File

By gary.wong ·
We are using a proprietary software which will only allow us to print directly to any select printer. The normal Windows printer options doesn't appear to allow me to select "Print To File".

The OS we are using is Win 2000. The proprietary software generate a spreadsheet like screen with data on it. It will print directly to a printer.

Does anyone have a way for me to generate a text file of this screen. On the printout, the menu also appears which gives the impression its like the "print to screen", but the spreadsheet can span more than one screen worth of image.

If I can get a file, I could write a program to parse the file and get the require information I am looking for.

Any suggestions??????


Thanks You.


Gary

This conversation is currently closed to new comments.

15 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Screen To Text File

by isys In reply to Screen To Text File

What prevents you from changing the printer port from LPT1 (or whatever) to File in the printer's properties?

Collapse -

Screen To Text File

by gary.wong In reply to Screen To Text File

The question was auto-closed by TechRepublic

Collapse -

Screen To Text File

by rmacys In reply to Screen To Text File

I would say just to create a printer the machine. That would allow you to have the little check box that shows up in the printer settings that allows you to print to file. Hope this helps.

Collapse -

Screen To Text File

by gary.wong In reply to Screen To Text File

The question was auto-closed by TechRepublic

Collapse -

Screen To Text File

by Joseph Moore In reply to Screen To Text File

This might not be the approach you are looking for, but you do a screen capture.
When the report window is up and is the active window, press CTRL+PRINT SCREEN.
That saves the active window in the Clipboard.
You could then Paste the image in a Word doc, or just open up Paintbrush and Paste there.
Then just print the image.

hope this helps

Collapse -

Screen To Text File

by gary.wong In reply to Screen To Text File

The question was auto-closed by TechRepublic

Collapse -

Screen To Text File

by Gigelul In reply to Screen To Text File

About "Print to file". You said that you can print to any selected printer.
You can add/install in yours windows printers a GENERIC printer with FILE port (not lpt) selected in instalation wizard.
Then you can print from your app to this printer and you will obtain a file on your HDD.
But the format of this file is unreadable. The file is formated for print. Maybe you can have a ideea about how you can use this file.

Collapse -

Screen To Text File

by gary.wong In reply to Screen To Text File

The question was auto-closed by TechRepublic

Collapse -

Screen To Text File

by kees.valkenswaard In reply to Screen To Text File

Answer #4 is perhaps too pessimistic. Really add the simplest generic printer. Print. You will be asked for a filename. It will probably be saved in your default location with the extension .prn
Depending on the content just open it in Word or Excel.
Realise that blanks [spaces] will have been added. You may have to replace these by multiple replacements of two blanks by one. [in Word]
If it is more table like, open in Excel. You should have converters for text installed. Excel will probablyask how to convert, fix width or separated text. If it would load immediately and everything is in column A, use Data, Text to Columns.
There may be funny squares in some cells. These are print control characters.
There is a function, see under text, to remove control characters. Copy and paste special..., values would do the trick to get something nice.
Good luck
If you want to mail me a sample .prn file, put also Q&A in the subject field, else the message will be deleted.

Collapse -

Screen To Text File

by kees.valkenswaard In reply to Screen To Text File

NOTE: As margins would be added you may have to scroll down in the Excel conversion dialogue box to see the first line of data.

Back to Windows Forum
15 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums