473,471 Members | 4,637 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using Office XP Web Components in ASP.NET



Hi,

I am trying to use Microsoft Office Web components in my asp.net
applicaion.

Actually i want to use the chart and came accross some sample code
in MSDN (Kb:Use a DataSet with the Office XP Chart Component and
ASP.NET)
[PSS ID Number: 303016].
I am using the 2nd example 'Use Literal Data' which works fine by
itself.
However when i modify

Dim sSQL As String = _
"SELECT LastName, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS
OrderTotal " & _
"FROM Employees INNER JOIN (Orders INNER JOIN [Order Details] ON " &
_
"Orders.OrderID = [Order Details].OrderID) ON Employees.EmployeeID =
" & _
"Orders.EmployeeID GROUP BY LastName"
to my own query:

Dim sConn As String = "User ID=sa;Password=ketna;Initial
Catalog=HelpdeskCL;Data Source=MS;"

Dim sSQL As String = _
"SELECT COUNT(PaymentMethod) AS Total, PaymentMethod FROM
helpdesk_info " & _
" GROUP BY PaymentMethod"
when i click the 'Chart Data' button on the asp.net form (after running
it) - nothing happens.

After some investigation i came across something called 'dsXML' - and
below is the copied
explation given by the MSDN article:

"Note that an XML data island with the ID "dsXML" exists in the HTML
source; the data island was generated by the code in the Page_Load event
of the Web form"
what do i need to change so that i can display my chart data correctly?

Thks,
Mehul
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 1540
You will get more specialized help on
microsoft.public.office.developer.web.components

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"mehul" <me*@computech.co.ke> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...


Hi,

I am trying to use Microsoft Office Web components in my asp.net
applicaion.

Actually i want to use the chart and came accross some sample code
in MSDN (Kb:Use a DataSet with the Office XP Chart Component and
ASP.NET)
[PSS ID Number: 303016].
I am using the 2nd example 'Use Literal Data' which works fine by
itself.
However when i modify

Dim sSQL As String = _
"SELECT LastName, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS
OrderTotal " & _
"FROM Employees INNER JOIN (Orders INNER JOIN [Order Details] ON " &
_
"Orders.OrderID = [Order Details].OrderID) ON Employees.EmployeeID =
" & _
"Orders.EmployeeID GROUP BY LastName"
to my own query:

Dim sConn As String = "User ID=sa;Password=ketna;Initial
Catalog=HelpdeskCL;Data Source=MS;"

Dim sSQL As String = _
"SELECT COUNT(PaymentMethod) AS Total, PaymentMethod FROM
helpdesk_info " & _
" GROUP BY PaymentMethod"
when i click the 'Chart Data' button on the asp.net form (after running
it) - nothing happens.

After some investigation i came across something called 'dsXML' - and
below is the copied
explation given by the MSDN article:

"Note that an XML data island with the ID "dsXML" exists in the HTML
source; the data island was generated by the code in the Page_Load event
of the Web form"
what do i need to change so that i can display my chart data correctly?

Thks,
Mehul
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2

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

Similar topics

9
by: [Yosi] | last post by:
Can I make an Excel file without having Excel in my PC ? I want to create Excel files from my C# application , then open those files later in another PC who have Excel installed . As we can open...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
3
by: DC Gringo | last post by:
Allison (or others), thank you for the advice...a few more questions: - I have tested on my workstation on Excel XP and my application references the Excel 10.0 Object Library. I was told the...
9
by: AndersBj | last post by:
Hi all, I have a web application that uses State Server for session handling. The web application randomly loses all session variables. The sessions are not always lost, sometimes I can use the...
7
by: John | last post by:
I'm trying to use the OWC on my web form and trying to make it look like Excel. I have the box there but no formatting such as headers, bold font, etc. I have the same control on a asp page and I...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
8
by: Just D. | last post by:
All, What exactly should we do to get WinWord working in asp.net? I wrote a class library and it works just great in WinApp. When I switched to the WebApp I can't get the object because of...
2
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
1
by: Manikandan | last post by:
Hi, I have a question reg excel interop. I have no excel installation(office installation) in my system I'm using office web components in my application. is there any help available to use...
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
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...
1
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
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...
1
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...
0
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...
0
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...
0
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 ...

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.