G
gsb58
Hi!
I seem to be missing something when using the PrintPreviewDialog.
On a form I have a monthCalendar which, at runtime, will display all
months of the year. Now I have routine for printing the calendar and it
works fine. However, when I try to bind this object to the
PrintPreviewDialog, the dialog is blank.
Can anybody guide me?
I have: PrintDocument(pDoc1) and PrintPreviewDialog(ppDlg1) components.
The code for the btnPreview is as follows:
PrintDocument pDoc1 = new PrintDocument();
PrintPreviewDialog ppDlg1 = new PrintPreviewDialog();
ppDlg1.Document = pDoc1;
ppDlg1.ShowDialog();
Now I guess I'm missing how to bind the calendar to the pDoc1, right?
I would be very happy if somebody can see the obvious mistake I'm
doing!
Me.Name
I seem to be missing something when using the PrintPreviewDialog.
On a form I have a monthCalendar which, at runtime, will display all
months of the year. Now I have routine for printing the calendar and it
works fine. However, when I try to bind this object to the
PrintPreviewDialog, the dialog is blank.
Can anybody guide me?
I have: PrintDocument(pDoc1) and PrintPreviewDialog(ppDlg1) components.
The code for the btnPreview is as follows:
PrintDocument pDoc1 = new PrintDocument();
PrintPreviewDialog ppDlg1 = new PrintPreviewDialog();
ppDlg1.Document = pDoc1;
ppDlg1.ShowDialog();
Now I guess I'm missing how to bind the calendar to the pDoc1, right?
I would be very happy if somebody can see the obvious mistake I'm
doing!

Me.Name