Graig
2009-05-04 19:45:26 UTC
On Windows XP, perl 5.10, Excel 2003, Win32 OLE.
No problems with perl creating an Excel spreadsheet, everything seems
to work quite well. The two problem that still remains is:
1) I am trying to freeze pane at row 2:
my $freeze_panes = $gExcel->ActiveSheet->Range("2:2")->Select;
#$gSheet->Cells(2,2)->Select();
$gExcel->ActiveSheet->{FreezePanes} = $TRUE;
I've tried it a couple of ways. After I create and save the excel file
with perl, I can open this new file and I see I am somewhat close, in
that row 2 is highlighted, but the freeze pane has not taken affect.
2) The second problem is that I want to detect if when starting my
script, is Excel already running? What can happen is that the user
abnormally terminates, and leaves a copy of Excel in memory. The only
way to detect this is using MS Task Manager, and kill the excel
process. I'd like my perl script to see if excel is running when it
first comes up, so that I can prompt the user to close excel...
Graig
No problems with perl creating an Excel spreadsheet, everything seems
to work quite well. The two problem that still remains is:
1) I am trying to freeze pane at row 2:
my $freeze_panes = $gExcel->ActiveSheet->Range("2:2")->Select;
#$gSheet->Cells(2,2)->Select();
$gExcel->ActiveSheet->{FreezePanes} = $TRUE;
I've tried it a couple of ways. After I create and save the excel file
with perl, I can open this new file and I see I am somewhat close, in
that row 2 is highlighted, but the freeze pane has not taken affect.
2) The second problem is that I want to detect if when starting my
script, is Excel already running? What can happen is that the user
abnormally terminates, and leaves a copy of Excel in memory. The only
way to detect this is using MS Task Manager, and kill the excel
process. I'd like my perl script to see if excel is running when it
first comes up, so that I can prompt the user to close excel...
Graig