Can someone please tell me how to get this to print. I am using VB6 and I have a print button on my form, but do not know how to make it print.
Many thanks.
Private Sub Command3_Click()
Open "C:\WINDOWS\Desktop\New Folder (2)\DM-ARC.WRI" For Output As #1 ' Open file for output.
Print #1, Spc(35); "DM - ARC" ' Print text to file.
Print #1, Spc(33); "Simple Skid"
Print #1, ' Print blank line to file.
Print #1, "Date:"; " "; Date
Print #1,
Print #1, "Drivers Name:"; Tab(50); "ARC Inspector:" ' Print in two print zones.
Print #1, "Address:"; Tab(50); "Address:"
Print #1, "Phone:"; Tab(50); "Phone:"
Print #1,
Print #1, "Location of Accident:"
Print #1,
Print #1, "Description of accident:"
Print #1,
Print #1,
Print #1,
Print #1, "The vehicle was going at least"; " "; Text4; " "; "mph at the beginning of the skid."
Print #1,
Print #1, Spc(5); Text4; " "; " = Sqr(30 * "; Text1; " * "; Text2; " * "; Text3; ")"
Close #1 ' Close file.
MsgBox "The file is located in the ARC folder on your desktop."
End Sub