home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,171 of 10,840   
   Stan Lackey to All   
   Error 6   
   25 Jan 05 23:07:21   
   
   From: stanlackey@hotmail.com   
      
   I have a VB6 program which prints several pages.  While the last one is   
   being printed, the page ejects before it's done, and the computer gets an   
   Error 6 popup.  It only seems to happen when using a networked printer, it   
   works fine with a local printer.  When the page ejects sometimes it's 1/4 or   
   so done, sometimes 1/2, sometimes text looks like it's running off the page.   
   Someone suggested I put a DOEVENTS right after the last page eject and I   
   tried it but it had no effect.  Help!  -Stan   
      
   Here's the structure:   
      
       ...   
       i = 1 ' start at first page   
       Do   
            
         Printer.EndDoc   
         i = i+1   
         If (i =18) Then Exit Sub ' keep going till last page is done   
       Loop   
       DoEvents   
   End Sub   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca