我有一个程序,为用户提供了行车路线,我想用户能够打印只是方向或只是方向和地图通过为每个选项选择相应的单选按钮。我如何只打印这些部分而不是整个表格?我怎样才能使用单选按钮来告诉它打印什么?由于如何打印只是一个或两个控制器,而不是在整个窗体的Visual Basic
更新代码:
Private Sub btnprint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprint.Click
If rbprintall.Checked = True Then
'Ad code to print all here
ElseIf rbprintdirections.Checked = True Then
lbldirections.DrawToBitmap()
lbldirections2.DrawToBitmap()
lbldirections3.DrawToBitmap()
lbldirections4.DrawToBitmap()
Else
MessageBox.Show("You must select one of the above options!")
End If
谢谢一吨科迪! – Blake 2011-01-12 02:40:39