Results 1 to 2 of 2

Thread: Print long Texts on the printer

  1. #1

    Thread Starter
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305

    Post

    English:
    There's a textbox filled by a Access 1.10 Database and I want to rint it out, but the printer only print on line with the method I know :
    Printer.Print Text1.text
    Printer.EndDoc
    What have I to do here (VB3) , Matt

    Deutsch:
    Ich habe ein Textfeld, das über eine Datenbank gefüllt wird, aber der Drucker druckt nur eine Linie mit der Methode, die ich kenn (s.o.).
    Was muß ich hier tun ? (VB3) , Matthias

  2. #2
    Guest

    Post

    you need to split the text into lengths of approx 75 characters (if your using courier New font)

    Code:
    MyString = Text1.text
    
    for i = 0 to (len(mystring) mod 75) + 1
    printer.print, mid(mystring, (i * 75), 75)
    next i
    i think this will do the trick, if it misses out some of the characters, then adjust the for i = ... line, (i havent tested it but i have used this in the past).


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

    Wossname,
    Email me: wossnamex@talk21.com

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