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

Dataset to Text File

using c# in VS2003 in compact framework
Hi,
I am looking for some examples on how to convert a Dataset to text file.
My application reads the dataset from SQL Server and displays it in a
datagrid. I would like to take the data in the datagrid and send it to a
text file.

Any suggestions are welcome and appreciated

Thanks
David
Nov 16 '05 #1
3 8528
DataSet.WriteXml(filename);

"David" <ds*********@hotmail.com> wrote in message
news:ex*************@TK2MSFTNGP10.phx.gbl...
using c# in VS2003 in compact framework
Hi,
I am looking for some examples on how to convert a Dataset to text file. My application reads the dataset from SQL Server and displays it in a
datagrid. I would like to take the data in the datagrid and send it to a
text file.

Any suggestions are welcome and appreciated

Thanks
David

Nov 16 '05 #2
Thank you for respondng

I checked, and yes I am running under SP2
I cannot locate any reference in the control properties that indicates the
tab order. Is there another way of setting the tab order ?

David

"Arild Bakken" <ar*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
DataSet.WriteXml(filename);

"David" <ds*********@hotmail.com> wrote in message
news:ex*************@TK2MSFTNGP10.phx.gbl...
using c# in VS2003 in compact framework
Hi,
I am looking for some examples on how to convert a Dataset to text

file.
My application reads the dataset from SQL Server and displays it in a
datagrid. I would like to take the data in the datagrid and send it to a text file.

Any suggestions are welcome and appreciated

Thanks
David


Nov 16 '05 #3
Thanks for your reply.
This dataset needs to end up as a .txt or .doc file. I cannot print XML
files from CF.
David

"Arild Bakken" <ar*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
DataSet.WriteXml(filename);

"David" <ds*********@hotmail.com> wrote in message
news:ex*************@TK2MSFTNGP10.phx.gbl...
using c# in VS2003 in compact framework
Hi,
I am looking for some examples on how to convert a Dataset to text

file.
My application reads the dataset from SQL Server and displays it in a
datagrid. I would like to take the data in the datagrid and send it to a text file.

Any suggestions are welcome and appreciated

Thanks
David


Nov 16 '05 #4

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

Similar topics

0
by: foobar | last post by:
I'm exporting data from sqlserver into a text file. I don't want to use a linked server or DTS. I have no problem getting the data into the correct dataset (the dataset linked to the text...
2
by: The Bear | last post by:
After a dataset has been populated from a text file, is it possible to update a text file from a dataset once changes are made? TB
1
by: The Bear | last post by:
I have populated a dataset with a tab delimited text file. When the changes are made in the dataset, I then want to write those changes from the dataset to a tab delimited text file. How do I write...
0
by: TJS | last post by:
attempting to read a delimited text file into a dataset using oledb text file connection getting this error message when trying to open connection...
7
by: Chris | last post by:
Hi I can use a text file as a datasource but am unable to get the datatable to see the text file as having multiple columns. Everything gets put into the first column in the datatable. Sample of...
11
by: scorpion53061 | last post by:
Well I had a way to write an array to an excel spreadsheet but on a huge time critical run it failed iwth the dreaded HRESULT: 0x800A03EC error. It worked fine when i sampled the data to go in but...
4
by: Amit Maheshwari | last post by:
I need to read text file having data either comma seperated or tab seperated or any custom seperator and convert into a DataSet in C# . I tried Microsoft Text Driver and Microsoft.Jet.OLEDB.4.0...
1
by: Jerry John | last post by:
I am working in ASP.NET with C#. I have a text file which contains datas with delimiters. For example:- MSH|^~\$|DISCHARGE|CLAY COUNTY MEMORIAL|||200502110939| I also have an XML file created...
1
by: Marc Miller | last post by:
Hello everyone, First I'll address this as a textfile manipulation question and if there is no answer there, then I'll need to ask it as a vb ADO question. I have a text file that I'm reading...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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,...
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.