Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace System_zgłoszeń_serwisowy
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. string html;
  22. html = "<html><body><b><font size='30px'><i>Zamówienie</i></font><br> Data: </b>" + dateTimePicker1.Value.ToShortDateString() + "<br>Zgłoszenie nr: " + zgloszenienr.Value + "<br>Zgłaszający: " + textBox1.Text + "<br>tel. kontaktowy: " + textBox2.Text + "<br>Typ zlecenia: " + comboBox1.Text + "<br>Prognozowany termin naprawy: " + dateTimePicker2.Value.ToShortDateString() + "<br>Prognozowana cena: " + textBox3.Text + "</body></html> \n";
  23. webBrowser1.DocumentText = html;
  24. zgloszenienr.Value++;
  25.  
  26.  
  27. }
  28.  
  29. private void Form1_Load(object sender, EventArgs e)
  30. {
  31.  
  32. }
  33.  
  34. private void textBox1_TextChanged(object sender, EventArgs e)
  35. {
  36.  
  37. }
  38.  
  39. private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  40. {
  41. webBrowser1.ShowPrintPreviewDialog();
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement