473,387 Members | 1,942 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,387 software developers and data experts.

Load xml data in report

20
Does anybody can explain in steps how can I load xml data in report and open it in reportViewer?


There's a short xml example ProductSales.xml:

<?xml version="1.0" standalone="yes"?>
<DocumentElement>
<ProductSales>
<Category>Accessory</Category>
<SubCategory>Bike Racks</SubCategory>
<Product>Hitch rack - 4 bike</Product>
<Sales>243696.0000</Sales>
</ProductSales>
<ProductSales>
<Category>Component</Category>
<SubCategory>Wheel</SubCategory>
<Product>ML Road Rear Wheel</Product>
<Sales>13042.2336</Sales>
</ProductSales>
</DocumentElement>


I try on this way, but report is open without data.

1. Add ProductSalesDataSet.xsd file in project
2. Create ProductSales DataTable in ProductSalesDataSet.xsd
3. Create report Report1.rdlc
4. Create reportViewer1 in Form1 and choose Report1.rdlc
5. Add in Form1_Load event: ProductSalesDataSet.ReadXml("ProductSales.xml");
6. Place ProductSales.xml in debug file
Mar 22 '07 #1
1 1158
use dataset.readxml(filename)

the xml file data will be uploaded in dataset.

then using scehma file create all the table which are in data set

use this scehma in report file connection

thank u
Mar 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: JS | last post by:
EE instance DB2 v7.2.0 fixpack 3 on WIN2K. I select some data from a table A and write it to a file using the COALESCE function and whitespace as the null character: eg coalesce(col1, ' '). This...
0
by: Bob Quintal | last post by:
Hi all, Using Access 97 Front End, linked to SQL Server back end. Required data is spread across three tables, with one table linked one to many to the two others. I created a report based on...
1
by: Seema | last post by:
Hello I am trying to create a normal report , i tried 3 ways. 1. Connecting to SQL db table 2. Creating dataset.xsd and using the same as datasource while creating a report and passing ...
0
by: BATISTA | last post by:
Hi I have to program in C# such that I have to add a button to the form , and create a crystal report, by getting source from the xml schema file(.xsd file) with two fields namely...
0
by: Simon | last post by:
Hi I try to open a CR report file located on the network path from a web form developed with vs2003 and CR for Visual Studio, but the Load method of ReportDocument object always return error. ...
2
by: Jeff_Mac | last post by:
Hi there. I'm a bit of a newbie, and I would appreciate any help that anyone can give me on an error I'm getting with Crystal Reports. Every time I attempt to view a report using the Crystal...
0
by: velocius | last post by:
When i load reports in my application, al goes well if i load a new report, it still works, new report gets loaded and gives me diffrent data/layout. when i export said report, all goes well, i...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.