Results 1 to 3 of 3

Thread: Printing Forms

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    37

    Printing Forms

    how will I print the form not including the command buttons??????

    also how will I put a picture into a command button? I try to use the Picture property but it doesnt work.. please help.. thanks...

  2. #2
    Hyperactive Member
    Join Date
    Feb 2006
    Location
    Philippines
    Posts
    468

    Re: Printing Forms

    set the style property of the command button to graphical
    on orint hide the controls

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Printing Forms

    Moved to ClassicVb
    VB Code:
    1. Private Sub HideUnHideButtons(pblnVisible As Boolean)
    2. Dim ctrl As Control
    3. For Each ctrl In Me.Controls
    4.     If TypeOf ctrl Is CommandButton Then
    5.        ctrl.Visible = pblnVisible
    6.     End If
    7. Next
    8. End Sub
    9.  
    10. Private Sub cmdPrintForm_Click()
    11. HideUnHideButtons False
    12. Me.PrintForm
    13. HideUnHideButtons True
    14. End If

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