|
|
|
|
Re: forms data into excel sheet [message #113472 is a reply to message #113307] |
Mon, 04 April 2005 01:26 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
A CSV format file, for me, means create a file and put the data in it so that it resembles 'csv' format.
To create a file, depending on the version of forms and PL/SQL installed, use either TEXT_IO or UTL_FILE. Do a search on OTN or google and you will find heaps of references to these keywords. You can also 'read' the comments for 'utl_file' by querying the synonym 'ALL_SOURCE' for 'NAME=UTL_FILE AND TYPE=PACKAGE' and order by line.
Each record is simply alphabetic strings and dates between double quotes and numbers in the raw separated by a comma. See the seven field example below. Dates needs to satisfy your local formatting. Nulls can be done two ways. Make your life easier and have the same number of fields on each line.
"Surname","First Name","01-NOV-04",1234.678,"",,
Basically, open the file, write a record, close the file. Then manually start Excel and open the file, or, in explorer, double click on the file and, assuming 'csv' files have been associated with Excel, it will open in the spreadsheet.
[Updated on: Mon, 04 April 2005 01:26] Report message to a moderator
|
|
|
|
|
|
|
Re: forms data into excel sheet [message #113499 is a reply to message #113487] |
Mon, 04 April 2005 05:19 |
hsinghalmrt
Messages: 51 Registered: March 2005
|
Member |
|
|
actually suppose we have a form in tabular.
when we execute query in the form the data displays in the tabular block. and i also have a button on the form . i want that as i click on that button the data of the form which is displayed in the tabular block moves to the Excel Document.
|
|
|
|
|