473,704 Members | 5,606 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4887
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.c om...
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.c om...
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
9243
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 only exporting to single worksheet. but i need to export data to multiple worksheets. it is very urgent to us. so please help me in code.
4
3946
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" TEXT field that contains data such as 2000/01, 2001/02, etc. If I export a Query with this kind of data to Excel, it gives me the text value of this field; however, when I export a Report bound to this TEXT field, Excel gives me the values 36526,...
5
3062
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 course it's the really important parts that are lost. In one report the grouping is lost and everything gets repeated. I've created several reports that pull data from various tables then they get exported to Word when they're run so the user can...
0
1826
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 Excel/Word When I stream the above ASPX page with Content Type set to Excel or Wor I get the Grid data exported Just fine, but I get empty image, where th chart should be. I've tested to see the imagefiles are still accessible through their URL
1
3163
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 As System.IO.MemoryStream = 3 myReport.ExportToStream( ExportFormatType.PortableDocFormat) 4 Response.Clear() 5 Response.Buffer() = True
2
2411
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 exporting ALL data from the datagrid control. Exporting data works fine when I show all data on the datagrid control. I'd like to shows only 30 records on the datagrid control instead of ALL data using page navigation, and perform exporting...
2
2263
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, excel and pdf. Is there anyway to export these images in ASP.NET I need solution urgent. Regards,
2
3180
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 set this up so as to do it reliably and minimize overhead? There are currently no constraints on the destination table. Assume the user or some configuration specifies the database name, server name, and filename+fullpath. The server is SQL...
0
1148
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) in the browser but the windows asking to save or to open the file never appears. - with .csv, the code below produces an identical excel file as with.xls (no comma). Here an extract of the code:
0
8764
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9266
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9020
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5926
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2074
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.