OLE Concepts in oracle Forms D2K [message #461226] |
Thu, 17 June 2010 02:56 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sharathmpatil
Messages: 38 Registered: February 2008 Location: Bangalore
|
Member |
|
|
Hi ,
I am trying to make an excel dump for some banking application using Forms 6i . I am making use of OLE to make an excel dump. I have a small problem while using this OLE concept . I have an Account column which is is having the data type VARCHAR2 at database level . when i try to make a excel dump of this column , then the values in the account number column in excel is getting converted into number column . Eg: A/c - 000123 is appearing as 123 in excel . can u please suggest how this can be retained as 000123 in excel sheet .
test case -
actual value appearing value in excel
000123 123
code extract in hv used -
args := ole2.create_arglist;
ole2.add_arg(args, rowcount);
ole2.add_arg(args, colcount);
cell := ole2.get_obj_property(worksheet, 'Cells', args);
ole2.destroy_arglist(args);
ole2.set_property(cell, 'Value', rec1.BANKNR);
ole2.release_obj(cell);
|
|
|
|