PDA

View Full Version : open search result in text file



nehashri
June 6th, 2007, 01:56 AM
hello
Can any one please help me in the following.....
I making a database with Access and ASP. I have created a search option where I have a text box and a submit button. the result to this search is displayed in the same page.
all i want is a option where user can choose between printing the results in the same page or in a text file....
the result is in tabular form and i want the format to remain if not table it self (in the asp page the results is presented in html tabular format with borders in the table so i want same thing to occur in text file to if it is possible)

please help
thanks
neha

Digitalosophy
June 6th, 2007, 09:30 AM
hello
the result is in tabular form and i want the format to remain if not table it self (in the asp page the results is presented in html tabular format with borders in the table so i want same thing to occur in text file to if it is possible)


I have a head ache after reading that last part. Could you re word what you are trying to say.

If your asking if it's possible to make tables in a text file then no. Look up the File System Object to write to a text file/

nehashri
June 7th, 2007, 12:19 AM
hey sorry for being a headache
i just want my user to have an option either to open the results in the browser or in a text file. well my results are in tabular format so for the browser output i have html tables and borders. But in the text file i want the results to be clear that is the each columns must be seperate for the user to understand. in the last para i ment if borders are not shown thats ok but the results should be understandable by the users..
basically i dont want borders in '.txt' format but a readable results

thanks
neha

Digitalosophy
June 7th, 2007, 08:34 AM
Ahh ok. Well then it's just a matter of formatting the text file to the way you'd like the user to see it then. What does your search results data look like? Is it in an array or is it a RecordSet result?

Check out this link.
http://w3schools.com/asp/asp_ref_filesystem.asp