Results 1 to 2 of 2

Thread: PrintForm and TabControl Tab page... How do I print tab page...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2007
    Posts
    190

    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?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2007
    Posts
    190

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width