Page 1 of 1

Printer errors and OCX

Posted: Thu Jan 10, 2002 5:11 pm
by Dave_Nabers_(Guest)
I have a VB 6 (sp5) form containing an R&R XBase v.9 OCX. When the user runs a report they can choose to send it to a printer or the preview (destination = 6). When the report is sent directly to a certain printer HP LaserJet 5L PCL)everything is fine. When it is sent from the preview to the same printer an error is reported from the Windows 98 Printers Folder to the effect that the OCX cannot write to the printer port due to an unknown system error. See code below.____Does the preview use a different method to print than sending directly? What are some possible conflicts/settings to experiment with? Sometimes this problem crashes the application, sometimes the PC as well, or forces me to reboot (11 times today!).____Thanks in advance____Code:____Private Sub RunReport()____^ bail out if no report selected!__If itemindex <= 0 Then Exit Sub__^ if itemindex is legit, so are the next 2 lines__RRReport1.ReportDirectory = Left(filepath, Len(fname) 4)__RRReport1.ReportName = fname & ".RRW"__^ this file is always present, guaranteed__RRReport1.MasterTable = App.path & "
ewquery.dbf"__^ next 2 lines use sys default unless user changes__RRReport1.Printer = printername__RRReport1.Port = printerport__RRReport1.Destination = 6__^ errors occurr when next line executes; using (1) no help__RRReport1.RunReport (2)__^Unload Me ^Me contains r&r ocx. Uncomment for even better errors ____End Sub____

=> RE: Printer errors and OCX

Posted: Sat Jan 12, 2002 7:09 pm
by kfleming
Have you installed the 9.0.009 update?__If you want to give me your email address, I can send you a newer RRWRUN.EXE that we can try to see if it makes any difference.______Kathleen__R&R Support