Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 8th, 2008, 11:37 AM   #1
sametc
Newbie
 
Join Date: Jul 2008
Posts: 1
Rep Power: 0 sametc is on a distinguished road
Printer settings

Quick background - currently using an app that requires setting the printer (an old dot matrix) to a specific amount of lines per page and also page width.

It's currently being done on a Windows 98 machine with the old dos command MODE. I believe the syntax is something like MODE LPT1:, 132,66 - to set the page and width.

We have been trying to upgrade the machine to Windows XP for some time now, but the mode command no longer supports that function.

I would like to know if anyone could assist me with writing a script, or small executable that would accomplish this same task. Thanks!
sametc is offline   Reply With Quote
Old Jul 8th, 2008, 5:13 PM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,031
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: Printer settings

Many of the old dot matrix printers are Epson-compatible, and as such, you could send the appropriate escape sequence to the printer to change modes, pitch, character size, etc. For example, see this page. A search on Google or the like should turn up a wealth of resources, and if the Epson codes don't work, you can search for the ones for your particular model of printer.

Is there any reason you can't just print from Windows, using a Windows-based program? Are you trying to support a piece of legacy software, unable to find Windows drivers, or what?
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strangest printer error Baphomet Coder's Corner Lounge 5 Nov 9th, 2007 6:08 AM
Which Printer Do You Recommend ? on_auc Coder's Corner Lounge 2 Nov 20th, 2005 6:46 AM
Printer Problem Teecha Coder's Corner Lounge 15 Nov 3rd, 2005 3:24 PM
Printing From Printer Firebirdracer14 Visual Basic 2 Aug 4th, 2005 10:06 AM
Printer stream in C Daniel_kd C 2 Apr 7th, 2005 10:28 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:49 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC