473,396 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Exporting Data to Excel and Word

Hi,

I'm writting an application based on an SQL Server for Order Management.
I have some data I want to export to Excel and Word, maybe some day I
will implement a serial letter.

The problem is I don't have Office installed on my Computer. Is there
something I can use for this task on the MSDN-DVDs? Where can I find a
couple tutorials on dealing with things like that on the web???

Any help is appreciated,

Regards,

Martin
Nov 16 '05 #1
3 4867
If you can target Office 2003 - one solution might be to use XML. Do
some searches on your local MSDN content for WordML and SpreadsheetML.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 24 Oct 2004 15:08:17 +0200, mphanke <mp*****@nospam.nospam>
wrote:
Hi,

I'm writting an application based on an SQL Server for Order Management.
I have some data I want to export to Excel and Word, maybe some day I
will implement a serial letter.

The problem is I don't have Office installed on my Computer. Is there
something I can use for this task on the MSDN-DVDs? Where can I find a
couple tutorials on dealing with things like that on the web???

Any help is appreciated,

Regards,

Martin


Nov 16 '05 #2
For a spreadsheet, writing the data to a SYLK file is probably the fastest,
although the file format is not well documented. In the past I had a need to
create some rather complicated EXCEL files using VB6, and the performance of
creating a single wotkbook with 136 worksheets was aborted after 14 hours
and the work incomplete -- once I coded the SYLK format and wote the
information to 136 SYLK files the program completed all work in less that
three (3) minutes. The advantage of SYLK is that it is a pure text format,
so it is very fast to create, and can be read by most spreadsheet programs.
I have some C# code that supports this, but I have not had time to clean it
up much. Contact me off-list if you are interested.

The problem with the COM interface to EXCEL (and WORD) is that they are very
slow. There is an incredibly complex round-trip that seems to perform
multiple translations and, as noted by the other responder, you must have
the applicaitons installed.

The problem with the XML format is that the files cannot be opened with
older versions of the applications, or with other applications.

If you do figure out how to do this, posting some information would be of
interest to myself and others.

-ken

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:1l********************************@4ax.com...
If you can target Office 2003 - one solution might be to use XML. Do
some searches on your local MSDN content for WordML and SpreadsheetML.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 24 Oct 2004 15:08:17 +0200, mphanke <mp*****@nospam.nospam>
wrote:
Hi,

I'm writting an application based on an SQL Server for Order Management.
I have some data I want to export to Excel and Word, maybe some day I
will implement a serial letter.

The problem is I don't have Office installed on my Computer. Is there
something I can use for this task on the MSDN-DVDs? Where can I find a
couple tutorials on dealing with things like that on the web???

Any help is appreciated,

Regards,

Martin

Nov 16 '05 #3
To Ken:

I would really be interested in the source code you used as I am also
looking to output my data to Excel or Word documents. I've never heard of
SYLK. Could you please let me know a bit more about it. My E-mail is
ca*********@msn.com

"Ken Allen" wrote:
For a spreadsheet, writing the data to a SYLK file is probably the fastest,
although the file format is not well documented. In the past I had a need to
create some rather complicated EXCEL files using VB6, and the performance of
creating a single wotkbook with 136 worksheets was aborted after 14 hours
and the work incomplete -- once I coded the SYLK format and wote the
information to 136 SYLK files the program completed all work in less that
three (3) minutes. The advantage of SYLK is that it is a pure text format,
so it is very fast to create, and can be read by most spreadsheet programs.
I have some C# code that supports this, but I have not had time to clean it
up much. Contact me off-list if you are interested.

The problem with the COM interface to EXCEL (and WORD) is that they are very
slow. There is an incredibly complex round-trip that seems to perform
multiple translations and, as noted by the other responder, you must have
the applicaitons installed.

The problem with the XML format is that the files cannot be opened with
older versions of the applications, or with other applications.

If you do figure out how to do this, posting some information would be of
interest to myself and others.

-ken

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:1l********************************@4ax.com...
If you can target Office 2003 - one solution might be to use XML. Do
some searches on your local MSDN content for WordML and SpreadsheetML.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 24 Oct 2004 15:08:17 +0200, mphanke <mp*****@nospam.nospam>
wrote:
Hi,

I'm writting an application based on an SQL Server for Order Management.
I have some data I want to export to Excel and Word, maybe some day I
will implement a serial letter.

The problem is I don't have Office installed on my Computer. Is there
something I can use for this task on the MSDN-DVDs? Where can I find a
couple tutorials on dealing with things like that on the web???

Any help is appreciated,

Regards,

Martin


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
by: D | last post by:
I've created a report with many subreports of aggregate data. I want my client to be able to export this data to Excel to make her charts, etc. Only one problem: one of the fields is a "SchoolYear"...
5
by: mik18 | last post by:
I'm having trouble with exporting reports to Word in the rtf format and I'm hoping someone has a solution. The reports are losing their formats. Not all the formating is lost but some is and of...
0
by: Pranav | last post by:
I've a web page that displays report data in a data grid an a chart ( I'm using Chart Fx for .Net which creates .PNG files on Server) I've a requirement to export the datagrid and chart both to...
1
by: Mustufa Baig | last post by:
I have an ASP.NET website where I am showing off crystal reports to users by exporting them to pdf format. Following is the code: ---------------- 1 Private Sub ExportReport() 2 Dim oStream...
2
by: bienwell | last post by:
Hi, I have a question about exporting data from datagrid control into Excel file in ASP.NET. On my Web page, I have a linkbutton "Export data". This link will call a Sub Function to perform...
2
by: Yaseen D M | last post by:
I have aspx page which contains some gif, jpg and png images. PNG image is generated dynamically. This file is basically a graph image. The problem i am facing in exporting these images to word,...
2
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
0
by: Dan | last post by:
Hi, i have some problem with exporting data from sql server to some formats. Excel and Word are not a problem, but .txt and .csv do not work properly: - with .txt, the data are shown (correctly)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.