Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: How to set a network printer as the default printing device for DF3.1c or above

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Clinton, MA 01510
    Posts
    333

    Default How to set a network printer as the default printing device for DF3.1c or above

    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

  2. #2
    Join Date
    Feb 2009
    Location
    Daytona Beach, Florida
    Posts
    1,816

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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.

  3. #3
    Join Date
    Feb 2009
    Location
    Clinton, MA 01510
    Posts
    333

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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

  4. #4
    Join Date
    Feb 2009
    Location
    New Prague, Minnesota USA
    Posts
    1,130

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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.
    Larry R Pint
    SOFT-STAR, Inc.
    New Prague, MN

    "What is that unforgettable line?” Samuel Beckett

  5. #5
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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
    Code:
     net use lpt2: \\{mypcname}\{myprintername}
    4. If Steps 1 & 2 & 3 passed, then from the dos prompt type
    Code:
    copy con: lpt2: {hit enter} type some random garbage {press Control-Z}
    5. if your printer printed out the random garbage, then setting dfprinter will work.
    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
    ++++++++++++++++++++++++++++

  6. #6
    Join Date
    Feb 2009
    Location
    Clinton, MA 01510
    Posts
    333

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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:

    Click image for larger version. 

Name:	3-2-2012 11-22-18 AM.png 
Views:	85 
Size:	58.3 KB 
ID:	4889

    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

  7. #7
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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
    ++++++++++++++++++++++++++++

  8. #8
    Join Date
    Feb 2009
    Location
    Clinton, MA 01510
    Posts
    333

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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

  9. #9
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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
    ++++++++++++++++++++++++++++

  10. #10
    Join Date
    Feb 2009
    Location
    Round Lake, IL
    Posts
    1,882

    Default Re: How to set a network printer as the default printing device for DF3.1c or above

    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>

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •