Thanks [TonHu] & [RHankinsJr],
Yes, I am trying to directly print to a windows printer using either "WRITE" or "NOTEPAD" or "WORDPAD" and I know I can use either with "/p" [textfilename] to print any textfile, however, I'm trying to find out IF there are any command-line (DOS) parameters that will allow me to change all or any margins to zero (0)?
And you tried to set them up correctly in Notepad, closing and trying to /print another file?
You can also reset/clear the pageheadings etc. (Can't test it myself now, time-locked)
HTH
I think what would solve your problem is to have a way to have the Notepad settings remain after you run the program. That way, you could set the margins and have those margins remain in effect. Here's how to make the Notepad settings "sticky". In Windows 98 or ME run regedit (in Windows 2000 run regedt32) Then navigate to the branch:
HKEY_CURRENT_USER\software\Microsoft. Then select the Notepad folder. In the right pane, double click the word fSaveSettings. In the DWord edit box that appears, change the value from 0(zero) to 1(one). Click OK to save this.
Then open Notepad and set your margins. They should be remembered.
There is a program out there on the Web named "AutoIt" that lets you create *.exe's out of its "macro" capabilities for Windows. With AutoIt, I made a little program that sets margins and fonts in Notepad before printing a text file. In my Clipper code, I shell out to the AutoIt .exe and print my file with this "macro" and get perfect settings every time.
It would be very ;-) nice if you published your AutoIt script, or some crucial parts of it, in this forum so others can benefit from it.
Just a suggestion...
Dear [pbsd] (Programmer),
I think you've hit on the best yet.
Appreciated.
I'll look for it.
You wouldn't know of any specific location?
Much Appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.