home bbs files messages ]

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

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

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

   Message 9,687 of 9,834   
   Jim Moseley to All   
   Re: Report print problem...?   
   06 Apr 09 17:03:39   
   
   From: jmose@mapson.triptracker.com   
      
   Kenneth,   
      
   You need to test the result of the Save().   
      
   But, really, why are you saving the report?  Since you used Load(), you can   
   adjust it however you want, then directly Run() it.   
      
   Also, if this is a multi-user application, you might be overwriting each   
   other's report.   
      
   Here's my suggested fix:   
      
   r.save()    ; <- do not need   
   if not r.close() then; ; <- do not need   
   	errorShow() ; <- do not need   
   return   ; <- do not need   
   endIf   ; <- do not need   
      
   if not r.run() then    ; <- add   
      errorShow()         ; <- add   
      return              ; <- add   
   endif                  ; <- add   
      
   if not r.print(":MONEY:Invoice") then   
   	errorShow()   
   	return   
   endIf   
      
      
   HTH,   
   Jim Moseley   
      
   --- 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