PrintForm and TabControl Tab page... How do I print tab page...
Title explains most of it.
I have a tab control in my Main Form which has 2 tab pages, each of which are a different form. I create them as:
Code:
Dim UserManagementForm As New UserManagement()
Dim FileManagementForm As New FileManagement()
Then set them up via:
Code:
UserManagementForm.TopLevel = False
UserManagementForm.Parent = TabControl1.TabPages(0)
UserManagementForm.FormBorderStyle = FormBorderStyle.None
UserManagementForm.Dock = DockStyle.Fill
UserManagementForm.Show()
FileManagementForm.TopLevel = False
FileManagementForm.Parent = TabControl1.TabPages(1)
FileManagementForm.FormBorderStyle = FormBorderStyle.None
FileManagementForm.Dock = DockStyle.Fill
FileManagementForm.Show()
I have a PrintForm component on my form and I am trying to send the currently active tab page to the print form and then send it to the appropriate dialog. However, I keep getting the document contains no images. Any ideas how I pass the tab page to the print form component?
Re: PrintForm and TabControl Tab page... How do I print tab page...
Nevermind on my original question. Forgot to call the PrintForm1.Print method to send it to the preview.
New question though, how can I retrieve the dialogresults from the print preview dialog when it is opened this way?