Hi
I want to retrieve data from the database and save it to txt File with
positions.
Let us Say 3 columns are got, i have to save at say 3-8 the first column ,
9-15 2nd Column, 16-29 3nd Column.
is there any code available , can u please post those links.
thank you
bhu 1 1438
Bhu,
A dataset has no columns, so what you want is not possible.
A datatable has rows which have items and therefore is just itterating
through the datatable and than itterating through the dataitems per row.
If you want a header than you have first to iterate through the columns from
the datatable to get the columnnames.
This is not a language newsgroup, so code is difficult to give because it
can be in any program languages.
If you want code for this I advice you to ask it in a language newsgroup,
although to ask code for this is in my opinion a little bit overdone so
simple as this is to achieve.
Cor
"bhu" <bh**********@h otmail.comschre ef in bericht
news:On******** ******@TK2MSFTN GP06.phx.gbl...
Hi
I want to retrieve data from the database and save it to txt File with
positions.
Let us Say 3 columns are got, i have to save at say 3-8 the first column
, 9-15 2nd Column, 16-29 3nd Column.
is there any code available , can u please post those links.
thank you
bhu This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: deko |
last post by:
I create an XmlDataDocument Dataset when the main form of my WinForms app
opens. The user will make changes to the Dataset, and then those changes
should be saved to the XML file when the code runs xdd.Save(xmlFile). But I
get an error when I try to save the Dataset back to the XML file: "The
process cannot access the file "C:\Projects.xml" because it is being used by
another process." Is this because I'm in Debug mode? How do I persist...
|
by: Alpha |
last post by:
Hi, I have a window based program. One of the form has several textboxes and
a datagrid. The textboxes are bind to the same dataset table as the datagrid
and the text changes to reflect different row selected in the datagrid.
I want to save the changes that user make in the textboxes when they select
a different row in the datagrid. I tried capturing the textbox.text at
datagrid's CurrentCellChanged event but by then the textbox.text...
|
by: Jae |
last post by:
I'm writing a web application that exports and imports excel files.
The application gets a list of users and their info and displays it in
a datagrid .The user then selects to save the file as a tab delimited
file or an excel file. The application then saves the file in the
correct format.
The flip side is for the user to import/upload the file to the server
The application must be able to import the excel file and read the
contents.
I...
|
by: buran |
last post by:
Dear ASP.NET Programmers,
I am saving the tables of a dataset into an XML file. I want to save the XML
file into the database, then retireve it as a dataset. I use the following
code:
ds.WriteXml("C:\Inetpub\wwwroot\database2\richtext\burak.xml")
where ds is my dataset.
|
by: PB |
last post by:
I need to enable users to download data in either an Excel file or an Access
database (MDB file).
The data they need exists in a SQL Server database: the XLS or MDB file does
not actually exist at the time the users request it.
My initial plan is that when users request their data, they will click a
button or link indicating that they want their data in the respective file
format. Then, on the server I want to execute a stored...
| |
by: JenHu |
last post by:
Hi experts,
I received a sample from bank for the header record in the output file
(attached at the bottom).
I want to use same method to have a stringbuilder to arrange the fix
length positions, and the fields will be retrieved from database and
put into the dataset. But I am familiar at how to use dataset and
put into .insert stringbuilder. Here is the code that I am working
on (the function should return 1 string line at a time....
|
by: Henok Girma |
last post by:
Hello Gurus,
I want to save the state of an unbound DataGridView on my Windows Form
application to an XML file so i can later load it back..
Basically, on my form I have a DataGridView, it's got some
DataGridViewTextBoxCell, DataGridViewComboBoxCell etc, i want to export all
that to XML..
Any help is greatly appreciated.
|
by: alexia.bee |
last post by:
Hi all,
I am new to C# so please bear me :).
I have an app which uses datagridview. it has 8 columns.
I also have struct which has 8 members(the same as the datagridview).
when I add row to the gridview, i add the same data to this staruct and
then add this struct instance to a list.
the app creates more then one file with different name. depending on
|
by: shapper |
last post by:
Hello,
I am getting various records from a database:
Dim ds As DataSet = db.ExecuteDataSet(dbc)
Each record has 3 fields: Id, Name and Text.
I have a class named MyClass with 3 properties Id, Name and Text.
|
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...
|
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,...
| |
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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
| |