473,403 Members | 2,359 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,403 software developers and data experts.

Creating Excel document from Dataset and XML ?

Hi all

Arggghhh...........
The problem.....I want the user to be able to create an excel document and
name particular cells in the document where they want the data to be placed
and then save this out of an XML file or Excel Template file.

Next I need to convert a dataset to xml and try and transform this data into
the users xml file..........i've seen a few things on this but havent had
much success...

basically

1. template file in xml with named cells
2. xml data payload
3. xsl style sheet to blend them all together

please if someone has an example then please respond. I know there a few
applications out there that does this, but hey it cant be that hard, just
not p to scracth with my xsl stuff.

thanks
Nov 20 '05 #1
4 1427
Hi,

Maybe this will help.
http://support.microsoft.com/default...b;en-us;307021

Ken
-----------
"Paul" <ma********@hotmail.com.nospam> wrote in message
news:eZ****************@TK2MSFTNGP11.phx.gbl...
Hi all

Arggghhh...........
The problem.....I want the user to be able to create an excel document and
name particular cells in the document where they want the data to be placed and then save this out of an XML file or Excel Template file.

Next I need to convert a dataset to xml and try and transform this data into the users xml file..........i've seen a few things on this but havent had
much success...

basically

1. template file in xml with named cells
2. xml data payload
3. xsl style sheet to blend them all together

please if someone has an example then please respond. I know there a few
applications out there that does this, but hey it cant be that hard, just
not p to scracth with my xsl stuff.

thanks

Nov 20 '05 #2
The example just goes through creating an excel sheet using a XSL sheet
which obviously at a user level they would have no idea of creating,
basicaly I want the user to populate an excel file with pointers to where
they wan the data and to embed the dataset into the excel sheet and save
this out.

Thanks
Paul

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

Maybe this will help.
http://support.microsoft.com/default...b;en-us;307021

Ken
-----------
"Paul" <ma********@hotmail.com.nospam> wrote in message
news:eZ****************@TK2MSFTNGP11.phx.gbl...
Hi all

Arggghhh...........
The problem.....I want the user to be able to create an excel document and name particular cells in the document where they want the data to be

placed
and then save this out of an XML file or Excel Template file.

Next I need to convert a dataset to xml and try and transform this data

into
the users xml file..........i've seen a few things on this but havent had much success...

basically

1. template file in xml with named cells
2. xml data payload
3. xsl style sheet to blend them all together

please if someone has an example then please respond. I know there a few
applications out there that does this, but hey it cant be that hard, just not p to scracth with my xsl stuff.

thanks


Nov 20 '05 #3
Hi Paul,

!! ... hey it cant be that hard ...

Are you sure about that? What sort of Xml does Excel produce - nice clean
economical stuff or reams of God-know-what?

Another alternative that might be worth investigating is to use the
XmlDocument class and do it programmatically.

Regards,
Fergus
Nov 20 '05 #4
lol,

Well yeah the easy way is do it programmatically but I need the ability for
a user to create a template file, so that they can setup the font details,
page headers etc. We used ot do it by spawning excel but it just seems to
dangerous to do this on the web server.
"Fergus Cooney" <fi******@tesco.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Paul,

!! ... hey it cant be that hard ...

Are you sure about that? What sort of Xml does Excel produce - nice clean economical stuff or reams of God-know-what?

Another alternative that might be worth investigating is to use the
XmlDocument class and do it programmatically.

Regards,
Fergus

Nov 20 '05 #5

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

Similar topics

9
by: Paul | last post by:
Hi all Arggghhh........... The problem.....I want the user to be able to create an excel document and name particular cells in the document where they want the data to be placed and then save...
2
by: Jason | last post by:
Hi I would like to export a dataset to xml, but not simply writing the XML equivalent of the dataset. so perhaps call it the true excel file. by writing the XML equivalent, excel is able to read...
0
by: Peter | last post by:
I am having a problem reading an Excel file that is XML based. The directory I am reading contains Excel files that can be of two types. Either generic Microsoft based or XML based. I am reading...
3
by: Scott M. Lyon | last post by:
I'm trying to figure out a way to export data (actually the result of a Stored Procedure call from SQL Server) into a specified Excel spreadsheet format. Currently, I have the data read into a...
6
by: Michael Groeger | last post by:
Hi, I have an aspx page which generates an excel document and transfers it to the browser as attachment. Normally, once the document is transferred the open save dialog prompts to open or save...
7
by: Paul | last post by:
Hi I have created an excel file download feature within a .net application using Microsoft Office XP primary interop assembly for excel. I was just wondering if anyone knows if you can also embed...
4
by: zacks | last post by:
I have an application that can read an Excel spreadsheet on a computer that doesn't have Excel installed on using the Jet ODBC 4.0 driver. I know need to modify the application to also be able to...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got a DataSet that I save as XML using the DataSet DataTable's WriteXml method. If I say XmlWriteMode.IgnoreSchema, it shows up great in Excel, but I can not reopen the file in my...
4
by: stephen | last post by:
Hi all, I am working with Excel. I read an excel document using ExcelReader and lets say it has 10 columns. I have to read each record and based on a specified column peform some activites and...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.