Results 1 to 8 of 8
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print to File turn off (OfficeXP SP3)

    Hi

    On Words native print dialog box - theres a checkbox 'Print to File'.
    I have code which when the print job is sent - this checkbox 'Print to File' is turned on. creating a spooled printer file.

    This setting 'Print to File' appears to stick. ie the next time the Print dialog box is displayed this setting is still turned on.

    Is there a way in my code that will allow me to unselect this checkbox after each print job is sent, without having to bring up the Printer window?


    any ideas?
    diana

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Print to File turn off (OfficeXP SP3)

    You can use code like this:

    With Dialogs(wdDialogFilePrint)
    ' Turn 'Print to file' on
    .PrintToFile = 1
    ' Show dialog
    .Show
    ' Turn 'Print to file' off
    .PrintToFile = 0
    End With

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to File turn off (OfficeXP SP3)

    Hans

    The code to send my file is below:

    Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
    wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
    Collate:=True, Background:=False, PrintToFile:=True, OutputFileName:=strFilename, _
    Append:=False

    How would I build your code into my code?
    Diana

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Print to File turn off (OfficeXP SP3)

    Hmm, in fact I don't know how to turn off the "Print to File" option without issuing a new PrintOut command or displaying the Print dialog. There is an old thread about this subject - see <post#=199179>post 199179</post#>.

  5. #5
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to File turn off (OfficeXP SP3)

    thanks hans...diana :-)

  6. #6
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to File turn off (OfficeXP SP3)

    Hi

    I'm just resuming the discussions about to 'Print to file'.

    Once I priint & send my file 'Print to file', straight after the job is sent, is there way I can turn off the 'print to file' checkbox without having to display Words print dialog box?

    Diana

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Print to File turn off (OfficeXP SP3)

    That's precisely what I had to admit I didn't know how to do. Sorry, no new ideas since two weeks ago.

  8. #8
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to File turn off (OfficeXP SP3)

    ok ta ...diana

Posting Permissions

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