473,789 Members | 3,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XmlDataDocument->DataSet->DataGrid: MDAC required??


Hi!

I have a windows forms application and , what I basically do is:

1.- Instanciate a DataSet.
2.- Instanciate a XMlDataDocument attaching the DataSet to it.
3.- Load XmlDataDocument with a local XML document (C:\mydoc.xml)
2.- Bind it to a Datagrid.
That is all!

My app doesn't need to access SQL Server, or any other ODBC, not even to MS
Access....

Is MDAC still required on the target machine in order for this to work?

I have not tried it on a machine that does not have MDAC installed so I
don't know if it works....

Thanks in advance.

--
I love .NET!
Jul 21 '05 #1
3 1524
Technically yes since there is no reference to the MDAC runtime libraries in
the assemblies you will use but a Windows without MDAC :-) ?

Gabriel Lozano-Morán

"Vico" <Vi**@discussio ns.microsoft.co m> wrote in message
news:64******** *************** ***********@mic rosoft.com...

Hi!

I have a windows forms application and , what I basically do is:

1.- Instanciate a DataSet.
2.- Instanciate a XMlDataDocument attaching the DataSet to it.
3.- Load XmlDataDocument with a local XML document (C:\mydoc.xml)
2.- Bind it to a Datagrid.
That is all!

My app doesn't need to access SQL Server, or any other ODBC, not even to MS Access....

Is MDAC still required on the target machine in order for this to work?

I have not tried it on a machine that does not have MDAC installed so I
don't know if it works....

Thanks in advance.

--
I love .NET!

Jul 21 '05 #2
Gabriel,

The thing here is that since my application will be a commercial application
and will be used by many people around the US, I really do not want to
install any "pre-requisites" unless are needed (of course .NET framework is
required) and MDAC 2.7 is required in some cases and some Windows 98, or Me o
2000 do not have it installed in the original setup.

So that is why :D

What do you think?

Thanks!!

"LOZANO-MORÃN, Gabriel" wrote:
Technically yes since there is no reference to the MDAC runtime libraries in
the assemblies you will use but a Windows without MDAC :-) ?

Gabriel Lozano-Morán

"Vico" <Vi**@discussio ns.microsoft.co m> wrote in message
news:64******** *************** ***********@mic rosoft.com...

Hi!

I have a windows forms application and , what I basically do is:

1.- Instanciate a DataSet.
2.- Instanciate a XMlDataDocument attaching the DataSet to it.
3.- Load XmlDataDocument with a local XML document (C:\mydoc.xml)
2.- Bind it to a Datagrid.
That is all!

My app doesn't need to access SQL Server, or any other ODBC, not even to

MS
Access....

Is MDAC still required on the target machine in order for this to work?

I have not tried it on a machine that does not have MDAC installed so I
don't know if it works....

Thanks in advance.

--
I love .NET!


Jul 21 '05 #3
Gabriel,

The thing here is that since my application will be a commercial application
and will be used by many people around the US, I really do not want to
install any "pre-requisites" unless are needed (of course .NET framework is
required) and MDAC 2.7 is required in some cases and some Windows 98, or Me o
2000 do not have it installed in the original setup.

So that is why :D

Thanks!!

"LOZANO-MORÃN, Gabriel" wrote:
Technically yes since there is no reference to the MDAC runtime libraries in
the assemblies you will use but a Windows without MDAC :-) ?

Gabriel Lozano-Morán

"Vico" <Vi**@discussio ns.microsoft.co m> wrote in message
news:64******** *************** ***********@mic rosoft.com...

Hi!

I have a windows forms application and , what I basically do is:

1.- Instanciate a DataSet.
2.- Instanciate a XMlDataDocument attaching the DataSet to it.
3.- Load XmlDataDocument with a local XML document (C:\mydoc.xml)
2.- Bind it to a Datagrid.
That is all!

My app doesn't need to access SQL Server, or any other ODBC, not even to

MS
Access....

Is MDAC still required on the target machine in order for this to work?

I have not tried it on a machine that does not have MDAC installed so I
don't know if it works....

Thanks in advance.

--
I love .NET!


Jul 21 '05 #4

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

Similar topics

2
11535
by: duncan | last post by:
Hi I an a mebie to XML / vb.net and I am struggling. I am developing a web base applcation using XML to link to its database so. Here is the XML I want to load into to a datagrid. The datagrid has the number of columns specified and is ready and waiting for its data. <Users>
0
1791
by: Brendan Reynolds | last post by:
I have a web service that takes the XML representation of a dataset and uses XSLT to transform it to the format required to open a disconnected ADODB recordset on the XML, and returns the transformed XML as a string, for use in an Access/VBA application. The transformed XML looks, in part, like this .... <z:row AbsenceDate="2004-06-01T00:00:00.0000000+01:00" TeacherCode="davolio" ClassCode="Junior Infants" StudentCode="Ana Trujillo"...
1
4149
by: Matthew Baskey | last post by:
Hello, I need to reorder a Typed DataSet in memory using an Xsl Transform. Most of the examples use stream which write to the hard disk or xml file. I want to do this in memory and then write the resulting Typed Dataset into a Session object which will be reused on multiple postbacks and then finally saved when editing is done. Get various problems depending
0
2157
by: gilly3 | last post by:
Reposting to a more relevant group. I am passing a generic dataset into a new XMLDataDocument and then parsing the XML with XSLT. The idea being that I can parse any dataset with the same xslt, and dynamically generate an html table. The problem is when the DataSet contains a null value, the node for that record is not created. Then when the xml parses it, there are too few cells in some of the table rows. I can think of a couple...
1
3383
by: Kevin Blakeley | last post by:
I know this was just posted but I did not want this message to get lost in the other thread as it's slightly different. Yes I want to export my dataset to excel for my clients, but I don't want it to show in the browser. Everything I have tried makes it so that IE will load excel within the browser session and view the file in there. What I want is for the user to be prompted with the save dialog to save the excel file disk. How do I...
3
5060
by: Mae | last post by:
Dear All, I have a problem here, I'm using C# Webform calling a webservices. The webservices return me a XMLnode, using this XMLnode I want to convert it to dataset so I can bind to the datagrid, by extracting the <CustomerData></CustomerData> block from the xmlnode. Below is the sample of xmlnode return from webservices. <?xml version="1.0" encoding="utf-8"?>
4
2190
by: bep | last post by:
Hello What is the best way to sort an XmlDocument for display in a DataGrig? I can use Xpath with an XpathExpression, and a XpathNavigator. But this XpathNavigator object is of no use to me, I need a XmlDocument. So is there an easy way to convert an XPathNavigator object to an XmlDocument? And I could use a piece of Xstl to transform the doc. But this seems like a lot of work. I would have to load the Xslt from file, cache it, and...
3
2277
by: P K | last post by:
Hello, I have a dataset which is already loaded with data in one table. so dataset.tables("data") exists and has data. Now, I have to add another table to the dataset. The source for this table is a XMLDoc. So I have the XML in a XMLDoc and I need to create a table in the dataset which would read xml from the XMLDoc . So in essence I need something like
1
1227
by: sani723 | last post by:
i am fetching some data from SQL and filling it through the Adapterto in DataSet, and then passing that DataSet to the XmlDataDocument Object, like XmlDataDocument XMLDoc = new XmlDataDocument(dsOrders); and then again i take SqlDataAdapteradapter2 with new Query and again fill the same Dataset. means there are now two results, resulted by 2 queries XMLDoc.DataSet.EnforceConstraints = false; and then i am accessing that data...
4
1972
by: =?Utf-8?B?VG9yZW4gVmFsb25l?= | last post by:
Hi, I have an XML file that I was hoping to use as a database Here is the code that I have copied that should display the data namespace File_Generation_System { public partial class vrholds : Form { public vrholds() { InitializeComponent();
0
9665
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
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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
10199
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
10139
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
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
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
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.