• Hooking into Print function for trays (2002)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Hooking into Print function for trays (2002)

    Author
    Topic
    #415746

    We receive a vast number of externally sourced documents that specify printer trays. This wastes our letterhead and creates multiple issues. I want to stop it happening by detecting tray settings and doing something about it.

    I’m looking to ‘hook’ into the print function using VBA. I’m happy enough coding the tray related code. My issue is creating the generic routine that works for any document as it is printed.

    As I understand it I need to create a routine with the same name as the standard function in Normal.dot
    Can someone please describe the where and what?

    Viewing 0 reply threads
    Author
    Replies
    • #927869

      I think you’ll have to use the DocumentBeforePrint event of the Application object. See post 217332. Or create FilePrint and FilePrintDefault macros. See the same thread grin.

      • #927871

        Hans Thanks for the reference – I’ll have a play but on a first read it looks just right
        Andrew

    Viewing 0 reply threads
    Reply To: Hooking into Print function for trays (2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: