OLE2 - Forms to Excel data format [message #260380] |
Sun, 19 August 2007 06:51 |
vdsk
Messages: 41 Registered: February 2006 Location: India & UAE
|
Member |
|
|
I am using Form6i on 10g.My Form trigger has code as:
args := ole2.create_arglist;
ole2.add_arg(args,rowcount);
ole2.add_arg(args,2);
cell := ole2.get_obj_property(worksheet,'Cells',args);
ole2.destroy_arglist(args);
ole2.set_property(cell,'Value',:item_block.item_code);
ole2.release_obj(cell);
Problem is , whenever :item_block.item_code start with '0' the Excel column cuts off the '0' and gives the numeric part of data only.
Eg: Form data '009856' converts to Excel as 9856.
How to fix this as same as Form output ??
|
|
|
|
|