hi srihari babu
just use this code with some changes
private void ExportCSV()
{
String columnString = "",dataString = "",combinedString = "";
columnString = "\"Name \",\"Age\",\"Date\",\"Class\"";
combinedString = columnString;
try
{
out.write(combinedString.getBytes());
}
catch (IOException e)
{
e.printStackTrace();
}
for (int i = 0; i < nodes.getLength(); i++)
{
Element element = (Element)nodes.item(i);
dataString = "\"" + XMLfunctions.getValue(element, "Name")
+"\",\"" + XMLfunctions.getValue(element, "Age") + "\",\"" +
XMLfunctions.getValue(element, "Date") + "\",\"" +
XMLfunctions.getValue(element, "Class") + "\"";
combinedString = "\n" + dataString;
try
{
out.write(combinedString.getBytes());
}
catch (IOException e)
{
e.printStackTrace();
}
}
try
{
out.close();
}
catch (IOException e)
{
e.printStackTrace();
}
}
and try to search on google you find lots of demo source code
On Tue, Sep 6, 2011 at 8:04 PM, srihari babu <[email protected]>wrote:
> Hi pranay,
> xls docs means nothing but a comma separated file.
> just write some thing in to text file with some commas.
> that will give u an excel file.
> bye
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Thanks and Regards,
Ankit Kasliwal
[email protected]
+91-9300-940-136
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en