|
-
Feb 14th, 2000, 07:43 AM
#1
Thread Starter
Junior Member
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).]
-
Feb 14th, 2000, 08:32 AM
#2
Junior Member
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.
-
Feb 14th, 2000, 11:06 AM
#3
Thread Starter
Junior Member
-
Feb 14th, 2000, 11:06 AM
#4
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|