Saturday, February 11, 2012   
 Search   
 

http://www.foxfirereporting.com
Register  Login  
Forums  
      
 Forums    
SearchForum Home
  Discussions  Sales and Pre-Sales Questions  Integrate FoxFi...
 Integrate FoxFire into my application
 
 6/20/2007 5:42:36 PM
dj
13 posts


Integrate FoxFire into my application
Dear Chick:

I have a software application written in FOXPRO 2.6 for DOS. After I create a report for foxfire, for example invoice.frt Can I generate the report inside my application like the report command of FOXPRO 2.6 ? Can I do as follows:

FF_REPORT FORM invoice TYPE PDF TO FILE xxxxx

or something similar and don't need to click the foxfire and select the file PDF and select SEND.

If it is possible, is DEVELOPER EDITION is the only item I need ? If not, how about FOXPRO 2.6 for WINDOW, can it do that ? Thank you.




 6/20/2007 5:52:39 PM
cb
4 posts


Re: Integrate FoxFire into my application

Excellent question.

Yes, you can call Foxfire! in two ways:

1. from within your app, and pass it a parameter list that includes the Request name. FF will run that report and return to your calling app at the point where you called it. You can do this with any number of standalone reports, or with a list of several reports.

2. by creating a standalone executable, you can call it from within your app or directly from the Windows desktop.   

The details for doing any of the above are documented in the Developer Help file. To open the Developer help file, click on the "ffdvhelp.chm" file in the main Foxfire! folder (the main folder usually is named ff80, but you may have changed it when you installed it. If so, use the name you assigned).

You can also get into the Developer help file is to open the System Administrator Tools menu and then press F1 or choose Help from the System menu. You can also do this from any individual tools under the System Administrator tools menu. Right now, the Help option of the Foxfire! System menu says  Microsoft Visual FoxPro Help, but that's minor bug. It's really the Foxfire! Developer Help.

In the Developer Help file, you will find a complete description within the section called "How Do I Get Foxfire! Out to my Users?", under the sub-section called "Different ways to use Foxfire!"

 6/21/2007 6:51:43 AM
stanleyfinch
9 posts


Re: Integrate FoxFire into my application

Sounds good, that all works well. I have another integration question. In certain instances, my app gathers the ask at runtime parameters, and in version 3.0+, I was able to run a Foxfire! report without the user being prompted for values as follows:

* start setting up the ffire batch file
USE op_batch IN 0 ALIAS ff_batch
SELECT ff_batch

* Now set up the record with the specifics for how this report will run
REPLACE REQUEST WITH CCustomreport
REPLACE config WITH "eaconfig.prg"
REPLACE prefset WITH "Flight Ops Data"

* and fill in the other run-time values so the user won't be promted
DIMENSION AskValues(2)

* the trip number
AskValues(1) = THISFORM.lcTripNo
AskValues(2) = THISFORM.Combo1.DISPLAYVALUE

* the customer
AskValues(2) = THISFORM.Combo1.VALUE

* save it to the batch record
SAVE TO MEMO AskatRun ALL LIKE ASK*

* run foxfire!
DO ("foxfire")

I have not noticed a counterpart to ff_batch in version 8. Is it still possible to run a report in such a manner?

 6/29/2007 7:12:17 AM
AndrewM
145 posts
www.aksel.com
5th


Re: Integrate FoxFire into my application
Sorry for the delay in responding Stanley.

YES - the same approach works in Foxfire! 8.0 - the big change that may seem confusing in 8.0 is the FFSTART program now automatically brings up a Welcome dialog instead of going straight into the request manager.

You can also find a STARTFF program in 8.0 which lets you automatically run a request or load in automatically.

Just pass it codes like this:

STARTFF.EXE WITH "C:\FF80\,Flight Ops Data,System,RequestName"

and it will automatically start Foxfire!, load the Flight Ops Data report set, log in as System and run the Request.
 7/12/2007 7:51:25 AM
dj
13 posts


Re: Integrate FoxFire into my application
Dear Sir:

I have bought the FoxFire8+, then I tried to call the FOXFIRE from the command prompt of foxpro 2.6 for windows. The foxpro 2.6 for windows gave an error message "WRONG VERSION" Any suggestion ? Thank you.
  Discussions  Sales and Pre-Sales Questions  Integrate FoxFi...
   
SearchSearch  Forum HomeForum Home     
 Links    
   
  
Downloaded from DNNSkins.com