Hi :) how do you print a string on the printer.
Lets say that I want to go through a data base printing the name field in Each record how would I do this.
Thanks
[This message has been edited by Stepeh (edited 02-14-2000).]
Printable View
Hi :) how do you print a string on the printer.
Lets say that I want to go through a data base printing the name field in Each record how would I do this.
Thanks
[This message has been edited by Stepeh (edited 02-14-2000).]
Perhaps something like this...
Private Sub CmdPrint_Click()
' This will print all of your record titles ' down the LHS of your paper.
Dim intTotalTitles As Integer
With Data1.Recordset
For intTotalTitles = 0 To .RecordCount
Printer.Print .Fields(0)
.MoveNext
Next
End With
Printer.EndDoc ' To Close the Printer after Printing
End Sub
You can set the print position by using
Printer.CurrentX = <XValue>
Printer.CurrentY = <YValue>
To print a string just use Printer.Print "Your Message"
I hope that gets you started.
Thanks Soo much that really Helps a lot :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)
Thanks Soo much that really Helps a lot :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)