|
我有个问题:
请问VFP 6 能否CONVERT .FRX FILE 成为EXCEL FILE 呢?
以下是我的部分SOURCE CODE
case thisform.doc = 'IN' && preview INVOICE
if thisform.dtype.value = 'A'
report form r_inv1 preview
endif
if thisform.dtype.value = 'B'
report form r_inv2 preview
endif
if thisform.dtype.value = 'S'
report form r_inv3 preview
endif |
|
|
|
|
|
|
|
发表于 15-8-2006 02:33 PM
|
显示全部楼层
不能直接由 .FRX 或 .LBX 转换成 .XLS。
不过能用以下两种方法。
1。Export Fields <field1,...> To <Excel file> Type XLS
2。嵌入式物件
oExcel = CreateObject('Excel.application')
oExcel.workbooks.add
oExcel.workbooks.open('c:\report\inv1.xls')
oExcel.cells(1,1).value = 'Report Title'
:
:
:
oExcel.workbooks.close
oExcel.quit |
|
|
|
|
|
|
| |
本周最热论坛帖子
|