Workflow Soluiton

 View Only
  • 1.  Print a PDF attachment from an email to a network printer

    Posted Aug 01, 2012 09:33 AM

    I would like to create a workflow that detects when an email arrives in an email account, then takes an attached PDF from that email and prints it to a remote printer. The email account that the workflow will be watching is an email account that is dedicated to the business process that this workflow will attempt to automate, so no other emails should land in this box.

     

    Anyone have any ideas how I can accomplish this?

     

    Thanks.



  • 2.  RE: Print a PDF attachment from an email to a network printer

    Posted Aug 01, 2012 10:17 AM

    You can set up either a Workflow or a Monitoring project to accomplish this.

    There's an Email library (LogicBase.Components.Email, not loaded by default) that has a Get component for Pop3/IMAP. This spits out all the messages of an inbox; the output type is called EmailDataType, and exposes the To/From/Attachments of a message. There's also an Auto Start from Email component in this library, which you can use in place of a Start component to kick the flow off when an email appears in the mailbox.

    You can use a Text Equals rule to determine if it's from a certain account, then you can deal with the attachments.

    As far as printing, you might be able to use a Write File component to write the file attachment to the file system, then maybe execute some DOS to print the file from the file system using the Execute Process/Execute Process and Wait component. See this article as a starter on how to write the DOS: http://support.microsoft.com/kb/314499

    This should eget you started, let me know if I need to elaborate.



  • 3.  RE: Print a PDF attachment from an email to a network printer

    Posted Aug 01, 2012 11:03 AM

    Excellent. Thanks for the fast reply. I'll throw something together and try to remember to come back and post whether or not I got it working.



  • 4.  RE: Print a PDF attachment from an email to a network printer

    Posted Aug 06, 2012 07:23 AM

    Hi Some printers now you can email and it will print the attached file however it has to be a newish printer.

    also HP and KonicaMinolta allow you to POST files and they print.