how to print designer view
I am able to print the code but would prefer to only print the designer view.
0
Best Answer
-
Hi STCB,
This method is not differing from the taking snapshots of the screen, but it will save all “Designer like” controls into bmp files on the disk c (run GetDesignerImage):
Public Sub GetDesignerImage For Each f As System.Windows.Forms.Form In System.Windows.Forms.Application.OpenForms GetDesignerControl(f) Next End Sub Private Sub GetDesignerControl(c As System.Windows.Forms.Control) If c IsNot Nothing AndAlso c.Visible Then If c.GetType.ToString = "DevComponents.AdvTree.AdvTree" Then Dim b As New System.Drawing.Bitmap(c.Width, c.Height) c.DrawToBitmap(b, New System.Drawing.Rectangle(0, 0, c.Width, c.Height)) b.Save("C:\" & Now.Ticks & ".bmp") End If For Each c2 As System.Windows.Forms.Control In c.Controls GetDesignerControl(c2) Next End If End Sub
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions