Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled exe does not work with frx2any?
Message
From
14/01/2006 15:14:05
Koos Veel
Gamma Research
Aruba
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
FRX2Any
Title:
Compiled exe does not work with frx2any?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086841
Message ID:
01086841
Views:
179
Dear all,

We use Frx2Any in an application written in VFP 9.0 SP1 but we cannot make it work from the compiled .exe. In developers mode it works perfect but after compiling an installation the calls to the application object are returned without any result.
The following is the way we set it up (the file frx2any.app is in the root directory of the program):
*-- The compiler gives an error if we say "set classlib to..." so we make a variable:
#DEFINE cnOUTPUT_FILE  		4
lcFrx2AnyLibrary = 	"FRX2Any"	 
SET CLASSLIB TO &lcFrx2AnyLibrary IN FRX2Any.APP ALIAS FRX2Any
*
loFile = CREATEOBJ('FRX2Any.PDFFile')
*
IF TYPE('loFile') = 'O'
	*-- Enter licence key.
loFile.UNLOCK('123456-123456-123456-123456-123456-123456-123456-123456')
	*-- NOTE: loFile.cExportFileName should not include file extension.
	loFile.cExportFileName = "OutputFile"
	*-- NOTE: loFile.cSaveFolder should contain only path to the output file.
	loFile.cSaveFolder = "c:\OutputFiles\"
	loFile.lDisplayStatus  = .F.
	loFile.nOutPutType = cnOUTPUT_FILE  
	loFile.SAVE("MyReport")
	loFile.RELEASE()
ENDIF
The loFile object is instantiated without problem but lcReportFullName never exists.
Anybody knows what we do wrong here?

Regards,

Koos Veel.
Next
Reply
Map
View

Click here to load this message in the networking platform