9
Answers

Printing word document from webpage?

Christian

Christian

15y
9.3k
1
Hi

Im in the situation where I need to make a webpage that can handle how to print a word document (created in the code) on the client printer. I think I should be able to create the word document but I dont know how to make it print from the printer at the client.
Any suggestions?

Answers (9)
0
Vulpes
NA 98.3k 1.5m 11y
Try this code:

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
   pressed = true;
   label1.Text = "Key Pressed: " + e.KeyCode;
   timer1.Stop();
   timer1_Tick(timer1, EventArgs.Empty);
   timer1.Start();
}