Jump to content

msraybuck

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by msraybuck

  1. Ok, over a year later and your script finally worked. There may be more than one variable, but I think it was just a simple syntax problem: I was using "Printout()" ..... when I changed it to "PrintOut()" in both locations in the script, it started working............. Thanks!
  2. Thanks for the suggestions. No, the printer icon does not go active. No evidence of printing. What would be the Powershell script for getting into the file menu of Infopath and essentially instructing it to File, Print? There are definitely some differences between Infopath and other Microsoft files. The start-process command (with a file path and filename) works fine to open and print a Word document, but returns errors when the exact same code is used and an xml file is substituted.
  3. I have tried this script numerous times, but it doesn't quite work. It opens the Infopath form, sleeps for 10 seconds, closes it, opens the next one, etc., and completes the script. But it is not actually printing the form. I've tried it by setting my default printer to PDF, or just leaving it as a real printer. By putting a -noexit command at the end, I can view the messages on the screen when the script is complete, and they state that the forms were printed successfully. I'm not getting any error messages. Am I doing something wrong? Once the Infopath form is displayed and open on the screen, it seems like the printing part would be easy. But I think the Printout() command is not working as expected. I'm using Windows 7 Pro at work, Powershell Version 1.0. Thanks for any advice!
×
×
  • Create New...