Hi!
Can anybody help me as to why I am getting this error: "the reference of the object is not set to an instance of an object"
here is the part of the code concerned
- private void button5_Click(object sender, EventArgs e)
- {
-
- printPreviewDialog.Document = printDocument;
-
- printPreviewDialog.ShowDialog();
- }