ProcessAnalyst printing

I have a PA trend page like:

I would like to hide the toolbar on top:

and use the print icon on top:
  

The AN number of the PA page is AN139

I have this code:

FUNCTION PrintProcessAnalyst()

OBJECT hAnalyst;
hAnalyst = ObjectByName("AN139");
_ObjectCallMethod(hAnalyst , "Print", "");

END

but when I press the printer button on top nothing happens.

I call the function like:

Any idea how to fix this or how to call the print dialog from the toolbar using the print icom on top?

Parents Reply Children