Quantcast
Channel: Comments on: Create an Excel-file with PL/SQL
Viewing all articles
Browse latest Browse all 73

By: Newbie

$
0
0

Hello Anton,

I’ve been using your pl/sql package to create an excel file. It works great !!!
I have two questions. How do I rename the sheets (ie. Sheet1) and how can I create a excel document with multiple sheets within the same excel document? Below is what I’m trying to attempt. When I run the following query, the output file is created but when I try to open the file with excel I get multiple errors.

DECLARE

v_dir VARCHAR2(30) := Course_dir;
v_file VARCHAR2(30) := ‘my_course.xls’;

begin
pwg_create_xlsx.clear_workbook;
pwg_create_xlsx.new_sheet(‘Course 24967′);
pwg_create_xlsx.query2sheet(‘select * from courses where course_numb = 24967′ );
pwg_create_xlsx.new_sheet(‘Course 24293′);
pwg_create_xlsx.query2sheet(‘select * from courses where course_numb = 24293′ );
pwg_create_xlsx.save(v_dir, v_file);
end;


Viewing all articles
Browse latest Browse all 73

Trending Articles