Export to Tab Delimited Text File

D

David Lozzi

Howdy,

I need to export some data to tab delimited text file. I was hoping to
simply convert my datagrid to it, but I can't seem to figure out how. Here's
what I got in the page header.

Response.ContentType = "text/plain"
Response.AddHeader("Content-Disposition",
"attachment;filename=invoice.txt")

This does create a downloaded text file and the contents is the HTML of the
completed page. Any ideas? If not, then I'm going to have to build it like

str = "Customer" & vbTab & "Address" & vbTab & "and so on...."

Thanks!!

David Lozzi
 
D

David Lozzi

OK so what I'm doing is something like this

datagrid itemdata bound load the text value and vbTab into a publis string.
clear the response
then write the string. Works pretty good.

Thanks!
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Export to excel !! 4
Export datagrid to excel file 3
export to PDF problem 2
export dataset to excel 5
Export to Word 2
Streaming PDF to IE 6.0 browser 3
Export a datagrid to csv 2
Export to Excell 1

Top