Home » Developer & Programmer » Forms » OLE Concepts in oracle Forms D2K (Oracle Forms D2K - 6i)
OLE Concepts in oracle Forms D2K [message #461226] Thu, 17 June 2010 02:56 Go to next message
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);
Re: OLE Concepts in oracle Forms D2K [message #465018 is a reply to message #461226] Mon, 12 July 2010 03:30 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Put a double_quote at the beginning of the output field.

David
Previous Topic: Forms 10g with Java 1.6.0_20
Next Topic: How to execute a stored procedure with out parameter.
Goto Forum:
  


Current Time: Fri Sep 20 09:41:26 CDT 2024