Printing Files

Comments

6 comments

  • Official comment
    Avatar
    Yaniv Levi

    Hi Sylvia,

    Process/Workflow runtime is fully server side, so indeed if you're using the PowerShell activity, the runtime would be in the AgilePoint Server machine.

    You can use the Out-Printer PowerShell command to print as part of your process model, just make sure that a printer is install on the AgilePoint server machine (for all profiles, or for the system user for the least) and that the file is accessible from the AgilePoint server (better, download the file to the AgilePoint Server prior to using the PowerShell activity to print the file).

    If this is an activity you need to reuse heavily across apps, and you have an "industrial" printer which also provide some APIs, you can create your own custom automatic activity (available for OnPrem/Private cloud envs) to print and track print (according to printer supported APIs), and than just Drag&Drop to configure, use and reuse across your apps.

    If on the eForm, you can use the eFormHelper JS method to automate the file printing according to events and/or form logic. Off course, you can just add the Print  button on to your form (Form Settings > Actions) to allow user to print when needed:

    In any case, when using from the eForm, the print would be done from the client machine and would use client profile for printers available (and would print the viable form).

    What are you looking to print? As if you are looking for a print in order to save a form data onto a file on your file system/repository using the "PDF Printer", than check out the  "Microsoft Word" activity (under the Documents stencil) which, using a word template will allow you to create a word or PDF document of data available in your app and save it to file system/repository. Check out this video for how-to in regards.

    Depending on the challenge you're trying to solve, there may be additional and/or more better ways available.

    Hope this. clears out and helps.

    Yaniv.

    Comment actions Permalink
  • Avatar
    Sylvia Able

    Thanks so much for the detailed response, Yaniv!

    This is my use case:  On the user's form, they have capability to upload files.  The user wants to be able to print those files to a local, default printer.

    It doesn't sound like AgilePoint has that capability.

    0
    Comment actions Permalink
  • Avatar
    Yaniv Levi

    Hi Sylvia,

    Thanks for providing more info on what you're trying to achieve.

    Indeed there is no OOTB special feature for that, but you can definitely can achieve that, here are some available options, to name a few:

    1. To upload the files to the form, than you would use the FileUpload control, than if you set in FileUpload > Allowed Action (under the Configuration tab) to one of the "View..." than use will be able to open file for view and use the print using the file app. This will require him to actively view and click the print for each of the files he wishes. Slightly more click but more GREEN and environment friendly ;)
    2. Using some JavaScript added to your form, you can get the files uploaded using the file control, loop over them and send them to print - all using some relatively simple JavaScript.
    3. Depending on your target file repository, if you're using smart file repository, such as BOX, your storage repository may provide you with standard code snippets to embed file/folder into web pages (eForms for that matter) which will also allow inline file viewer and print.

    More options are available.

    Keep in mind that eForm is eventually a pure HTML5, and AgilePoint is both NoCode and Low-Code meaning, though you can do many rich and complex form/process/automation/... with using the OOTB NoCode Drag>Drop>Configure, using some pin point standard  Low-Code, you can still extend the existing capabilities to meet with your specific needs when needed. With eForms this Low Code would be JavaScript (and/or CSS 3 and HTML) to extend the eForm capability -  all are standard and modern Web technology which can be done by any web coder familiar with this tech. Also, in many cases you can find many ready to use code snippets or library on the web.

    Hope this helps.

    Just one last note "Think green before you print" :))

    Yaniv.

    0
    Comment actions Permalink
  • Avatar
    Sylvia Able

    Thanks Yaniv....

    I tried using the FileUpload control and set the allowed action to View and Upload:

     

    But when I run my form and identify files in my upload control, I see no way to open them.  Is there supposed to be a view button in addition to the remove button?

     

    I thought of the Javascript route, but when I searched the web about it, it says that there is no print capability with Javascript except to print the current form.

    0
    Comment actions Permalink
  • Avatar
    Sylvia Able

    Actually, Yaniv, I finally got it to open the files.  It appears that you have to have View and Download in order to open them (at least in Chrome)...  :)

     

    Thank you!

    0
    Comment actions Permalink
  • Avatar
    Yaniv Levi

    Hi,

    You're very welcome.

    Glad you got it going... Keep Agile... ;)

    Best,

    Yaniv.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.