Writing Textbox data to a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Can someone tell me how to write the data from a TextBox (txt) or Label
(lbl) to a text file to be printed. I have read the info from
msdn.microsoft.com/library on "Writing Text to a File", and it only offers a
solution for writing a text string and the system date.

Help!!!!! I'm at a lost!

Thanks
D.
 
yello,

It would be easier to give you an answer to your problem, if you mentioned
what
you wanted to do with the textbox stings that you are going to save.....

eg: trying to write a csv file?
eg2: trying to save what the textboxes hold, so that the next time you
open the app, the data will return?
 
Thanks TheMadHatter,

First let me say I am a beginner with C#, so there are some bascis I haven't
learned yet. But having said that, I have written a small app that basically
processes a payroll.

After all the calculations, I write all the fields (both txt and lbl) from
the windows form to the database. And what I really would like to do is print
that exact form for a pay statement (pay stub), but I don't know how to print
it.

All the print examples I've seen so far print from a text file. So I figured
maybe I should write the form information to a file and then print.

So that's what I'm doing with the text fields.

Thanks,
D.
 
Well everyone here except I apparently uses crystal reports for
reporting. If you want to print the entry form as you would in a RAD
database app you can download my controls and try them. If it works for
you I can send you a special version that prints without a license
message.

http://www.geocities.com/jeff_louie/windows_forms.htm

Regards,
Jeff
 
Back
Top