1 Reply Latest reply on Sep 21, 2008 12:04 AM by (Aandi_Inston)

    how to disable print command


      I embedded acropdf.pdf.1 into a form in MS Access to display pdf files, but I would like to disable the print commands, I use the following code, and it only disables all the print commands from MS Access, not the embedded acrobat reader, any idea how I can do that? thanks

      Sub TogglePrintCommands(ByVal commVal As Boolean)
      Dim cb As CommandBar
      Dim bc As CommandBarControl

      For Each cb In AcroPDF1.Application.CommandBars
      For Each bc In cb.Controls
      If InStr(1, bc.Caption, "Print") Then
      bc.Enabled = commVal
      End If
      End Sub