I have lost the environment setting for a network printer while using DFX3.1c. I believe I used to ... Set Dfprinter=???????
I am using Windows 7, DFX3.1c and I have a network printer on my router not plugged into my PC.
I have lost the environment setting for a network printer while using DFX3.1c. I believe I used to ... Set Dfprinter=???????
I am using Windows 7, DFX3.1c and I have a network printer on my router not plugged into my PC.
Doug McBrierty
All things must pass away........
Zackly Software
" We Build'm Zackly the way you Want'm "
Cell (561) 524-9124, dbmcbrierty@zackly.biz
Assuming you have set the printer to a port (net use LPT2:=\\myserver\myprinter /PERSISTENT:YES) then indeed dfprinter should work.
set DFPrinter=lpt2:
I have not tested this with Windows 7, but the net use command parameters seem unchanged from Windows XP. (p. 598 in the DataFlex Revsion 3 User's Guide.)
Jim Albright
Wizard Systems, Inc.
Still trying to get net use to work. my printer is on a router I have an IP address and a port name but no server name (that I can find), do not need to use DFPrinter was trying that environment variable. Any suggestion would be welcome... I will continue to try thing. Thanks for the help
Doug McBrierty
All things must pass away........
Zackly Software
" We Build'm Zackly the way you Want'm "
Cell (561) 524-9124, dbmcbrierty@zackly.biz
Is it installed on the computer in question? I have several network printers. They are installed as any other printer, using their IP address. Then they are used like any other printer gets used.
as larry says, if the printer prints from windows, you're half way there.
If it's installed as a local printer, then you have to share it, in order to get a URL you can map.
So;
1. Check the printer can be printed to from windows.
2. If Step 1 passed, then in windoze share the printer, giving it a name.
3. If Steps 1 & 2 passed, then from the dos prompt, (or in setpath.bat) type
4. If Steps 1 & 2 & 3 passed, then from the dos prompt typeCode:net use lpt2: \\{mypcname}\{myprintername}5. if your printer printed out the random garbage, then setting dfprinter will work.Code:copy con: lpt2: {hit enter} type some random garbage {press Control-Z}
Last edited by Michael Mullan; 2-Mar-2012 at 09:27 AM. Reason: tyops
Michael Mullan.
Danes Bridge Enterprises.
++++++++++++++++++++++++++++
There is just today. Tomorrow is a concept
that is mostly theoretical. -- GM Wylie
++++++++++++++++++++++++++++
My printer works with all the PC (that it is installed on) in the workgroups network..... and it is turned on... RFLOL
I can printer form any program except DF3.1c programs.
My printer is not shared did not think it needed to be because it works, wondoze 7 warns that it will be limited if I do that.
See the warning from windoze 7 printer sharing:
I want to use "Net Use" I do not need to use "DFPrinter" unless I have to..... I would like to print when runiing DFX3.1c
Last edited by dbmcbrierty; 2-Mar-2012 at 03:36 PM.
Doug McBrierty
All things must pass away........
Zackly Software
" We Build'm Zackly the way you Want'm "
Cell (561) 524-9124, dbmcbrierty@zackly.biz
When the development PC is off, the development PC won't need to use the share, will it?
As long as you are just doing this for the one PC it will be ok.
Are you trying to do this for multiple pc's ?
Michael Mullan.
Danes Bridge Enterprises.
++++++++++++++++++++++++++++
There is just today. Tomorrow is a concept
that is mostly theoretical. -- GM Wylie
++++++++++++++++++++++++++++
One PC and only when I am working with DFX3.1c which is not every day.... I was going to put the Net Use in a batch file I use to start the DFX3.1c from the Commad Prompt Window
Most of the time I am in VDF or Web Site Development
Doug McBrierty
All things must pass away........
Zackly Software
" We Build'm Zackly the way you Want'm "
Cell (561) 524-9124, dbmcbrierty@zackly.biz
You can put it in the setpath batch file. I'm sure this works, because I had to do it yesterday. A customer of mine decided out of the blue to replace ALL their XP machines with windows 7 PC's. Of course, nobody remembered to mention this to me, so i had a fast and furious afternoon of removing "outfile" commands, and replacing "open 'c:\myTemfile" as MyTempFile" wih proper dynamic pathing to the windows Temp folder, where writing is actually permitted... (I didn't write this thing, I just maintain it and occasionally add bits in VDF)
Michael Mullan.
Danes Bridge Enterprises.
++++++++++++++++++++++++++++
There is just today. Tomorrow is a concept
that is mostly theoretical. -- GM Wylie
++++++++++++++++++++++++++++
AFAIK: "DFPrinter" does not know anything about a windows printer; all it knows is LPT1 or 2 or 3, etc...
Todd Forsberg
Idealease, Inc.
Senior Programmer
Web and Mobile Development: Think Outside the <DIV>