🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #5039

how to disable print command

#5039
From: Jimmy_Huang
Date: Sat, 20 Sep 2008 17:50
16 lines
1224 bytes
Hello,

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
        Next
    Next
End Sub
Technical Details
Message-ID: <59b68937.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.sovam.com!goblin1!goblin2!goblin.stu.neva.ru!news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,2f9008f48d65d003,start
X-Google-Attributes: gid10273d,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jimmy_Huang@adobeforums.com
Newsgroups: adobe.reader
Subject: how to disable print command
Message-ID: <59b68937.-1@webcrossing.la2eafNXanI>
Date: Sat, 20 Sep 2008 10:50:48 -0700
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.sovam.com!goblin1!goblin2!goblin.stu.neva.ru!news4us.nl!webcrossing