CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Print the REcords of table

    Dear Gurus,
    I want the code which prints a string to a printer without using APIS'.

    Can anyone help me out.

    Thanks,
    Shivakumar G.M.


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Print the REcords of table

    You can use the printer object

    Printer.print "This is a line on the printer"
    Printer.print "This is the next line"
    Printer.print "This is the last line"
    Printer.print "Ok, I lied about the last line, this is the last line"
    Printer.EndDoc




    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3

    Re: Print the REcords of table

    see the object Printer.

    hi,brt

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  4. #4
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Print the REcords of table

    Hello sir,
    after printing the last line, it will leave a lot of spaces. I do not want to leave a single line space also.

    Please help me sir.
    Thank You,
    Shivakumar G.M.


  5. #5
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Print the REcords of table

    In that case, omit the enddoc. The enddoc will end the current printfile, and the printer will process it. if you are using a matrix printer, the enddoc should not issue a new page.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured