Form printing
this is pic and code. i want to print this form without apearing print dialog
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nattudurai EswaramurthyRank #5,536 · 296 reputationPosted Aug 15, 2012, 11:09 PM EDT
You can print from either client side or server side.
if its client side u can go with
"window.print()"
or
http://codingresolved.com/discussion/18/print-report-without-preview-/p1
or
void PrintFiles() { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = true; Process p = new Process();//Create new process for printing startInfo.Verb = "PRINT";//print command to execute startInfo.CreateNoWindow = true;//supress the print dialog. startInfo.WindowStyle = ProcessWindowStyle.Hidden; string path = Server.MapPath("~/Documents/"); //Get all the files from the Directory in string array string[] docFiles = Directory.GetFiles(path); //Loop through the files for (int count = 0; count //document to print p.StartInfo = startInfo; //Associate the print command and the filename to print with the process. p.Start();//Start printing. } p.Dispose(); } Hope this helps u... Please mark this answer as accepted answer if it resolves your problem.