Board index » delphi » TExcelApplicationWorkbookBeforeClose ( Wb Param)

TExcelApplicationWorkbookBeforeClose ( Wb Param)

  TExcelApplicationWorkbookBeforeClose = procedure(Sender: TObject; var Wb:
OleVariant;
                                                                    var
Cancel: OleVariant) of object

When this event is fired Wb is passed in as False every time.  How exactly
are you supposed to use the Wb parameter?  I can't typecast it as anything,
I get invalid typecase.  I also have not found any examples dealing with
using the Wb paramter from any of the TExcelApplication Events.

--
Geoff Price
MedEvolve

 

Re:TExcelApplicationWorkbookBeforeClose ( Wb Param)


You have same problem as I - check third parameter (Cancel), here is the Wb.
I think this is problem in OLEServer unit.

Milan Tomes

Quote
>   TExcelApplicationWorkbookBeforeClose = procedure(Sender: TObject; var
Wb:
> OleVariant; var Cancel: OleVariant) of object

> When this event is fired Wb is passed in as False every time.  How exactly
> are you supposed to use the Wb parameter?  I can't typecast it as anythi
ng,
> I get invalid typecase.  I also have not found any examples dealing with
> using the Wb paramter from any of the TExcelApplication Events.

> --
> Geoff Price
> MedEvolve

Other Threads

1. TExcelApplicationWorkbookBeforeClose problems...

2. L.EGAL C.A.B.L.E TV DE-S.C.R.A.M.B.L.E.R ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbhbgbbbbbbbbbbbbbffffffffffffffffffffffffffffffffffffffffffffffffffffffffffqqqqqqqqqqqqqqqqqqqqq2qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzz

3. Unknown param data type (103) (D:\Projects\Delphi\Dbx\Source\dbexp.pas, line 1479)

4. ++ Meet More Women Easily With Pheromones ++ frrrtttyyyyyyyyyyyyyyyyyyyyyyyyjjjjjjjjjjjjjnnnnnccccnnnnnbbbbbbbbbbbbbbhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhffffdsddddddd 488 [1/2]

5. +++GET YOUR FREE PENTIUM CELERON-300+++____________________________________________________________________________________________rtyu4598rut oiwty etijew u65her iuer

6. !!!!!!!!!!!!!!!!!!!! PROGRAMS FOR SALE !!!!!!!!!!!!!!!!!!!!????????????????????????????????????????????????????????????????????????????????????????????????

7. DBNavigator HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

8. ** EVIDENCE ELIMINATING SOFTWARE** dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd 2587 [1/2]

9. ++ Meet More Women Easily With Pheromones ++ frrrtttyyyyyyyyyyyyyyyyyyyyyyyyjjjjjjjjjjjjjnnnnnccccnnnnnbbbbbbbbbbbbbbhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhffffdsdddddddddddddddddddddeee44444deeeeyyyuyp 4151 [1/2]

10. ALERT- - Rid your PC of Illegal Images rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr