Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Export data from SQL into Excel files

I am trying to determine if its possible to export data directly into
an Excel file instead of exporting to a comma-separated (.csv) file
first. And later import that csv-file to an Excel file.
Data is extracted from a MSSQL database. Excel files must be in
either .xls (Excel 97-2003) or .xlsx (Excel 2007) format.

Question 1: Is it possible to create an Excel file from scratch up ?
Question 2: If "yes" to Q1, is it limited to the .xls or .xlsx file
format ?
Question 3: If "yes" to Q1, is there limitations of what information
that can be saved ? (such as formulas, only numbers/text or formating)
Question 4: If "no" to Q1, is there any third-party plug-in or
software that can preform the creation of an Excel file ?

If this is can only be done via some programming then it must be in
PHP (web).

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Export data from SQL into Excel files

The 'bottom line' of your post is the catch. Had you been asking about doing
all of 1-3 from within Excel, the answers would have been easy to provide.

My bottom line is that you're probably better off sticking with creating the
..CSV file in your web application: they're easy to create and compatible with
all versions of Excel.

Excel used a file format called BIFF (Binary Interchange File Format) up
until Excel 2007. There were various versions of BIFF. With Excel 2007, the
file format became part of the Office Open XML formats - there are several of
them (one for each of the .xls? type files). Of course, 2007 retains the
ability to open earlier BIFF formatted .xls files - so that would be one
option to keep coding to a minimum: only build the BIFF formatted file that
could be read by a wider range of Excel versions. If you go with the XML
Spreadsheet format (XMLSS, introduced with Excel XP [2002]) then you're
restricting the audience.

"Kim" wrote:

I am trying to determine if its possible to export data directly into
an Excel file instead of exporting to a comma-separated (.csv) file
first. And later import that csv-file to an Excel file.
Data is extracted from a MSSQL database. Excel files must be in
either .xls (Excel 97-2003) or .xlsx (Excel 2007) format.

Question 1: Is it possible to create an Excel file from scratch up ?
Question 2: If "yes" to Q1, is it limited to the .xls or .xlsx file
format ?
Question 3: If "yes" to Q1, is there limitations of what information
that can be saved ? (such as formulas, only numbers/text or formating)
Question 4: If "no" to Q1, is there any third-party plug-in or
software that can preform the creation of an Excel file ?

If this is can only be done via some programming then it must be in
PHP (web).


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Export data from SQL into Excel files

Thank you very much.

On Oct 29, 1:39 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)
wrote:
The 'bottom line' of your post is the catch. Had you been asking about doing
all of 1-3 from within Excel, the answers would have been easy to provide.

My bottom line is that you're probably better off sticking with creating the
.CSV file in your web application: they're easy to create and compatible with
all versions of Excel.

Excel used a file format called BIFF (Binary Interchange File Format) up
until Excel 2007. There were various versions of BIFF. With Excel 2007, the
file format became part of the Office Open XML formats - there are several of
them (one for each of the .xls? type files). Of course, 2007 retains the
ability to open earlier BIFF formatted .xls files - so that would be one
option to keep coding to a minimum: only build the BIFF formatted file that
could be read by a wider range of Excel versions. If you go with the XML
Spreadsheet format (XMLSS, introduced with Excel XP [2002]) then you're
restricting the audience.

"Kim" wrote:
I am trying to determine if its possible to export data directly into
an Excel file instead of exporting to a comma-separated (.csv) file
first. And later import that csv-file to an Excel file.
Data is extracted from a MSSQL database. Excel files must be in
either .xls (Excel 97-2003) or .xlsx (Excel 2007) format.


Question 1: Is it possible to create an Excel file from scratch up ?
Question 2: If "yes" to Q1, is it limited to the .xls or .xlsx file
format ?
Question 3: If "yes" to Q1, is there limitations of what information
that can be saved ? (such as formulas, only numbers/text or formating)
Question 4: If "no" to Q1, is there any third-party plug-in or
software that can preform the creation of an Excel file ?


If this is can only be done via some programming then it must be in
PHP (web).


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
There's no export to dbf files from XL2007? Kluster Excel Discussion (Misc queries) 11 April 11th 07 03:48 AM
How do I export Lotus Approach files into an Excel spreadsheet? LEWOLF New Users to Excel 1 March 20th 06 05:19 PM
Export rows in Excel to lutiple Word files [email protected] Excel Discussion (Misc queries) 3 December 16th 05 10:54 PM
export gif file files k2sarah Charts and Charting in Excel 1 December 5th 05 04:43 PM
Export html page to Excel - support files folder Export html page to Excel - support file Excel Discussion (Misc queries) 1 June 24th 05 12:36 PM


All times are GMT +1. The time now is 08:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"