Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Formatting an excel using PL /SQL

Debanjan BanerjeeApr 16 2014 — edited Apr 16 2014

Hi All,

I am creating a .csv file which is mailed to business.The Excel file is then opened by the business and formatted (increase the width of certain columns, change to landscape orientation, etc.) and then printed

They are wondering if you can have an Excel file pre-formatted to certain column widths and orientation before being emailed so that they can just open and print.


What is the best solution for this request.


Below is the sample code that I used from PL SQL to generate the .Csv


output_file := utl_file.fopen (path,filename, 'W');

utl_file.put_line (output_file, firstline);

utl_file.put_line (output_file, secondline);

utl_file.fclose(output_file);


I know i can achieve the requirement using BI publisher, but wondering if I can minimize the effort using the existing program which is PL SQL.


Thanks &Regards,

Debanjan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2014
Added on Apr 16 2014
5 comments
3,866 views