Please help, I am trying to modify VFP app to print attached WORKS (.XLR) files. The app can handle EXCEL (.XLS) files, but does not have the command for WORKS files. Here is the command that controls the printing of EXCEL file:
FUNCTION PRINTEXCELDOC
LPARAMETER FILENAME
OEXCEL = CREATEOBJ("Excel.Application"
WITH OEXCEL
.VISIBLE = 0
.WORKBOOKS.OPEN( FILENAME )
.ACTIVEWORKBOOK.PRINTOUT
.QUIT
ENDWITH
RELEASE OEXCEL
RETURN
Could someone take a look at the above command and tell me what I need to change so that it will work for WORKS files? Thanks in advance.
Rick
FUNCTION PRINTEXCELDOC
LPARAMETER FILENAME
OEXCEL = CREATEOBJ("Excel.Application"
WITH OEXCEL
.VISIBLE = 0
.WORKBOOKS.OPEN( FILENAME )
.ACTIVEWORKBOOK.PRINTOUT
.QUIT
ENDWITH
RELEASE OEXCEL
RETURN
Could someone take a look at the above command and tell me what I need to change so that it will work for WORKS files? Thanks in advance.
Rick