*-- 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() ENDIFThe loFile object is instantiated without problem but lcReportFullName never exists.