PDA

Click to See Complete Forum and Search --> : Print long Texts on the printer


Matt-D
Jan 11th, 2000, 01:41 AM
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 :D :
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.). :D
Was muß ich hier tun ? (VB3) ;), Matthias

Jan 11th, 2000, 02:54 AM
you need to split the text into lengths of approx 75 characters (if your using courier New font)


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 :)