LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default XML Source

Im not sure if this is the correct group for this post so please advise of
any other managed newsgroup that would be more appropriate.

I am looking for a method of producing reports of data from a SQL Server
database. The database holds stock information. I am considering HTML,
Crystal and Excel as my reporting tool. Im not very familiar with Excel's
2003 XML capabilities so I'd like someone to advise me whether I can do what
I want to do. Im also not very experienced with XML.

Many of our stock items are assemblies of other stock items and some are
standalone stock items. I have included a sample of XML that could be
produced.
What Id like to know is whether it's possible to set up a template in Excel
that I could use to open my XML export and have it display the top-level
stock items differently to the assmebly sub-items. ie Have the top-level
stock items dispayed with a light blue background and have the text bold,
and have any sub-items of that top level stock item displayed underneath it
with yellow background and italicised text.

Is this something that could easily be set up using Excel 2003

Regards

Terry Holland

=================================
Example of Excel Display
=================================

Stock Code Description Quantity Cost Price Sale Price
000100 Item A £100.00 £200.00
000101 Item A: Subitem 1 4 £10.00 £20.00
000102 Item A: Subitem 2 2 £11.00 £22.00
000103 Item A: Subitem 3 3 £8.00 £16.00
000200 Item B £523.00 £1,046.00
000201 Item B: Subitem 1 2 £52.00 £104.00
000202 Item B: Subitem 2 4 £58.00 £116.00
000203 Item B: Subitem 3 4 £18.00 £36.00
000300 Item C £265.00 £530.00
000400 Item D £15.00 £30.00


=================================
End of Example of Excel Display
=================================



=================================
XML
=================================
<?xml version="1.0" encoding="utf-8" ?
<PriceList
<StockItem
<StockCode000100</StockCode
<DescriptionItem A</Description
<CostPrice100.00</CostPrice
<SalePrice200.00</SalePrice
<StockItem
<StockCode000101</StockCode
<DescriptionItem A: Subitem 1</Description
<CostPrice10.00</CostPrice
<SalePrice20.00</SalePrice
</StockItem
<StockItem
<StockCode000102</StockCode
<DescriptionItem A: Subitem 2</Description
<CostPrice11.00</CostPrice
<SalePrice22.00</SalePrice
</StockItem
<StockItem
<StockCode000103</StockCode
<DescriptionItem A: Subitem 3</Description
<CostPrice8.00</CostPrice
<SalePrice16.00</SalePrice
</StockItem
</StockItem
<StockItem
<StockCode000200</StockCode
<DescriptionItem B</Description
<CostPrice523.00</CostPrice
<SalePrice1046.00</SalePrice
<StockItem
<StockCode000201</StockCode
<DescriptionItem B: Subitem 1</Description
<CostPrice52.00</CostPrice
<SalePrice104.00</SalePrice
</StockItem
<StockItem
<StockCode000202</StockCode
<DescriptionItem B: Subitem 2</Description
<CostPrice58.00</CostPrice
<SalePrice116.00</SalePrice
</StockItem
<StockItem
<StockCode000203</StockCode
<DescriptionItem B: Subitem 3</Description
<CostPrice18.00</CostPrice
<SalePrice36.00</SalePrice
</StockItem
</StockItem
<StockItem
<StockCode000300</StockCode
<DescriptionItem C</Description
<CostPrice265.00</CostPrice
<SalePrice530.00</SalePrice
</StockItem
<StockItem
<StockCode000400</StockCode
<DescriptionItem D</Description
<CostPrice15.00</CostPrice
<SalePrice30.00</SalePrice
</StockItem
</PriceList

=================================
End of XML
=================================


 
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
Pivot Table data source "data source contains no visible tables" Jane Excel Worksheet Functions 0 September 29th 05 08:28 PM
How can i set the source-data-range of pivottable2 to the source . Piet Excel Discussion (Misc queries) 0 March 5th 05 09:31 PM
How can I change the source of my extern source database in an ex. No Name Excel Programming 3 September 17th 04 10:27 PM
row source new Excel Programming 2 September 12th 03 06:05 AM
Control Source Steven Taylor[_2_] Excel Programming 0 July 16th 03 04:01 PM


All times are GMT +1. The time now is 01:37 PM.

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

About Us

"It's about Microsoft Excel"