In ASP.net site...
Please can you clarify where exactly you want this text to be printed?
Your original question related to a "c# windows application" -
however, this will work /completely/ differently to ASP.NET
Once I have the string in string type varaible, I want that string to be printed directly to the
database right after I read the string from the database.
By this, do you mean at the server? Or back at the client (in which
case it can't be "right after")...
If you mean you want the user's browser to silently print a page, then
you can't really do this under the HTML model [nothing to do
with .NET] unless you cheat and use a control of some kind. The best
you can do is bring up the print dialog, by calling window.Print() (in
javascript) at the client.
Marc