Thursday, July 29, 2010   
 Search   
 

http://www.foxfirereporting.com
Register  Login  
Forums  
      
 Forums    
SearchForum Home
  Support  Foxfire! 8+ Support  Calling FoxFire...
 Calling FoxFire from an applicaiton error
 
 10/8/2009 2:03:14 PM
Pat Channings
1 posts


Calling FoxFire from an applicaiton error

I have an error "please sepcify a valid object name ffactivex.cobjectname" when trying to call FoxFire.

We are running the Codemine framework in the application and in FoxPro developement if I clear codemine FoxFire will run without the error.  We don't want to do that in the application.

This is the calling program:

*Run FoxFire from main app.

LOCAL cSetDefault

m.cSetdefault = SET('default')

SET DEFAULT TO 'W:\FF80\'

* try to stop codemine

m.cError = ON('error')

ON error

IF VARTYPE('goapp') = 'O'

goapp.oRegistry.CloseAll() && Codemine App object

ENDIF

CLOSE TABLES

CLOSE DATABASES ALL

DO w:\ff80\foxfire.APP WITH 'Requests',"Pat",,"ffconfig.prg","" &&"Property Information"

**goapp.oRegistry.OpenAll()

**DO csetup WITH .F., .T.

 

 10/9/2009 2:36:49 AM
AndrewM
130 posts
www.aksel.com
5th


Re: Calling FoxFire from an applicaiton error
CodeMine uses MSGSVC and a few other tools which are shared with Foxfire! yet each have their own custom environments.

What you should do is before calling FOXFIRE.APP, call the following:

IF PEMSTATUS(_SCREEN,"omsgsvc",5)
_SCREEN.Removeobject("omsgsvc")
ENDIF
IF PEMSTATUS(_SCREEN,"ointl",5)
_SCREEN.Removeobject("ointl")
ENDIF

IF USED("MSGSVC")
USE IN MSGSVC
ENDIF
IF "MSGSVC"$SET("PROCEDURE")
RELEASE PROCEDURE MSGSVC.FXP
ENDIF

Then try it out - let me know if that does not resolve it and if not, we can set up a support session to take a further look.

Another alternative would be to call Foxfire! as a separate application from within your application - this has the benefit of allowing the user to run reports and still use your application simultaneously.
This could be done by calling RUN /n startff
with the various parameters.
  Support  Foxfire! 8+ Support  Calling FoxFire...
   
SearchSearch  Forum HomeForum Home     
 Links    
   
  
Downloaded from DNNSkins.com