Print an Page in SA Workspace Citect SCADA 2018

Hello All

Can you help me to find a function that we can use to print the current page in workspace.  

This function is launch from a button in Header page.

Thank you

  • If i Launch the Function PagePrint() in header Button.. the page printed is the header and not the workspace...
    My question is to found the right method to print the all workspace or the page in content pane...
  • Hi Miguel,

    As the workspace is made up of many "embedded" windows, you can only print one of them. To do that you need to select it, then print.

    So something like this will print the main 'content' pane of the default workspace:

    FUNCTION PrintContentPane()

    INT nContentWindow;
    INT nPrevious;

    INT nWorkspace = Workspace_GetWorkspaceFromWindow(WinNumber());

    nContentWindow = Workspace_GetPaneWindow(nWorkspace, "Content")
    nPrevious = WinSelect(nContentWindow);
    WinPrint("PORTPROMPT:", 0, 0, 0);
    WinSelect(nPrevious);

    END

    At this time, there is no way to print the entire workspace in one capture.

    Cheers,
    bradley

  • Hi Bradley

    Well Done!

    It's working in the system. The good ideia would be to print entire workspace.. however, the content is enougth for our scope.

    Thank you

    Cheers,

    Miguel