No announcement yet.

Code for Printer Settings not working.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Code for Printer Settings not working.

    Hi, I'm running this script to load printer settings on a server. A program sends a print request to the server. Running on the server is another program to accept the print requests and actually print the jobs. Before printing, this program runs a file that contains printer settings. Now, it does change the default printer settings (change from single side printing to double-sided ), but the print jobs use the 'Printing Preferences', which are unchanged and set to single-side printing. Is there a way to change the 'Printing preferences'?

    RUNDLL32 PRINTUI.DLL,PrintUIEntry /Sr /n "printer" /a "file.dat" g d
    Thanks for any ideas,
    Last edited by biggles77; 27th May 2009, 04:36. Reason: Move code from Title to post body. Rename Title.

  • #2
    Re: Code for Printer Settings not working.

    Teknik, please do not post code as Title again. Read the Posting Rules and post accordingly.

    Thank you.
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2


    • #3
      Re: Code for Printer Settings not working.

      Could we see the contents of "file.dat" to see if it gives us any clues
      Also, what is the model of the printer?
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd

      ** Remember to give credit where credit is due and leave reputation points where appropriate **