I have look at the examples in other posts, but still don't quite understand what I'm doing wrong.
Can someone look at this and tell me what I'm doing wrong?
DEFINE VARIABLE ch-Excel AS COM-HANDLE.
DEFINE VARIABLE ch-Workbook AS COM-HANDLE.
DEFINE VARIABLE ch-Worksheet AS COM-HANDLE.
CREATE "Excel.Application" ch-Excel NO-ERROR.
ch-WorkSheet = ch-Excel:Sheets:Item(1).
ch-Excel:WorkBooks:OPEN ("P:\P2000SQL\Forms\WARRANTY CLAIM FORM.xls").
ch-Excel:VISIBLE = TRUE.
ch-Worksheet
rintOut(1,1,1,FALSE,SESSION
RINTER-NAME,FALSE, FALSE).
ch-Excel:QUIT().
RELEASE OBJECT ch-WorkSheet.
RELEASE OBJECT ch-WorkBook.
RELEASE OBJECT ch-Excel.
Thank you for your help.
Can someone look at this and tell me what I'm doing wrong?
DEFINE VARIABLE ch-Excel AS COM-HANDLE.
DEFINE VARIABLE ch-Workbook AS COM-HANDLE.
DEFINE VARIABLE ch-Worksheet AS COM-HANDLE.
CREATE "Excel.Application" ch-Excel NO-ERROR.
ch-WorkSheet = ch-Excel:Sheets:Item(1).
ch-Excel:WorkBooks:OPEN ("P:\P2000SQL\Forms\WARRANTY CLAIM FORM.xls").
ch-Excel:VISIBLE = TRUE.
ch-Worksheet


ch-Excel:QUIT().
RELEASE OBJECT ch-WorkSheet.
RELEASE OBJECT ch-WorkBook.
RELEASE OBJECT ch-Excel.
Thank you for your help.