Click here to Skip to main content
15,916,842 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Team,
I have read data from excel and saved into dataset. here i have been trying to write dataset data into .prn file. i have been searching many sites, i didn't find even one piece of code about writing data into .prn file. if any one know how to write data into .prn file, share the knowledge.

Regards
Nanda Kishore.CH
Posted
Comments
Maciej Los 15-Apr-15 2:48am    

1 solution

Have a look here: Formatted text (.prn) is limited to 240 characters per line in Excel [^]

*prn file is just a text file. The only difference is that, that it is limited to 240 characters per line.

How to write to text file?
How to: Write Text to a File[^]
Code: Writing to a Text File (Visual C#)[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900