I am trying to send information from a form to a printer, but cannot get the printer box displayed, or have the information go to the printer. I added messagebox commands to make sure the program is going were it is suppose to go, but it doesn't seen to work. The information is always displayed on the form.
if writedata = 1
messagebox("need to go to report"
if thisform.printeropen = .F.
messagebox("getting printer"
set device to printer prompt
thisform.printeropen = .T.
endif
? "Old Balance" + str(csr_bal.patient, 15,2) + ;
str(csr_bal.insur, 15,2) + ;
str(csr_bal.tot_account, 15,2) + ;
str(csr_bal.family, 15,2)
? "New Balance" + str(patbal, 15,2) + ;
str(insbal, 15,2) + ;
str(totbal, 15,2) + ;
str(fambal, 15,2)
endif
if writedata = 1
messagebox("need to go to report"
if thisform.printeropen = .F.
messagebox("getting printer"
set device to printer prompt
thisform.printeropen = .T.
endif
? "Old Balance" + str(csr_bal.patient, 15,2) + ;
str(csr_bal.insur, 15,2) + ;
str(csr_bal.tot_account, 15,2) + ;
str(csr_bal.family, 15,2)
? "New Balance" + str(patbal, 15,2) + ;
str(insbal, 15,2) + ;
str(totbal, 15,2) + ;
str(fambal, 15,2)
endif