Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Telling if print command from menu or icon (Word 2000/SR1)

    I have a before print event but I need to know if the print was started from the print toolbar icon or from the file menu. Is there a way to tell?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Telling if print command from menu or icon (Word 2000/SR1)

    I thought that CommandBars.ActionControl would help, but it seems to return Nothing in either case. I'm not sure why, but I think it only works for user controls and not for built in ones.

    StuartR

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Telling if print command from menu or icon (Word 2000/SR1)

    Does the event fire before the Sub FilePrint or Sub FilePrintDefault runs? If so, I can't think of a way to know.

    If you create procedures with those names and set a global variable that could then be read inside your event procedure, well, that's all that comes to mind at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •