Announcement

Collapse
No announcement yet.

Printing to a windows printer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing to a windows printer

    Hello,

    how to print from a Dosprogram to a Windowsprinter ?

    Thanks and regards

    Matthias Kuhn



    ------------------

  • #2
    A possible solution, not too elegant, is to write to a file and then copy that file to the port / device / queue with a SHELL "COPY myfile.prn \\myserver\mysharedprinter".

    Bye!

    ------------------
    Try Online TrID file identifier! Recognize over 1.400 filetypes and counting...
    Give a powerfull scriptable Lua interface to your application with PowerBLua
    PBTracer - Tracer / Profiler for PowerBASIC (soon!)
    -- The universe tends toward maximum irony. Don't push it.

    File Extension Seeker - Metasearch engine for file extensions / file types
    Online TrID file identifier | TrIDLib - Identify thousands of file formats

    Comment


    • #3
      Your best bet would be to check out www.dosprint.com and download
      the demo. You can then purchase the full version if you want.

      BTW: I have no association with this company other than using
      their products.


      ------------------
      There are no atheists in a fox hole or the morning of a math test.
      If my flag offends you, I'll help you pack.

      Comment


      • #4
        http://www.powerbasic.com/support/addons/printers.asp
        I use ddoc by Don Dickinson and wrote a program
        that accepts arguments using SHELL on the command line.
        In the passed COMMAND I tell ddoc what to do like print
        a text file, etc. Supports mailing labels, printing in
        columns, email and many other functions. Use if for
        all printing. Very inexpensive, easy to use and comes with
        source. Backed by Don you can't go wrong.


        ------------------
        How long is an idea? Write it down.

        Comment


        • #5
          I converted my PBDOS programs to write reports to an RTF file and then
          shell to Word passing Word the name of the RTF file. I can then print my report
          using Word and perhaps do some tweaking before printing.
          RTF is easy for simple stuff. Try it.

          BTW, I also do this with some old Turbo Pascal and FoxBase and dBASE III programs.
          This has extended the life of these programs.


          ------------------

          Comment

          Working...
          X