Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 51
Registered: ‎04-11-2016

Call Print from wortkflow

Hi All,

 

Is it possible to invoke the print action/command from within a workflow form?

 

I want to not show the print Toolbar\tab in the main client but to only allow the user print under certain circumstances I.e. from a workflow.

 

Can this be acieved via a Javascript call?

 

Regards,

Simon 

Highlighted
Technical Evangelist
Posts: 148
Registered: ‎10-20-2015

Re: Call Print from wortkflow

[ Edited ]

Hi Simon,

that's not supported out of the box.

 

You can try to write a Java plugin which does the following:

  1. Initialize the PrintingPlugin and execute loadOnStart and stop when your plugin get's the calls.
  2. Write a IScriptingObject implementation which calls the openPrintDialog() method of your PrintingPlugin instance.

Best Regards,

Steve