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

Parents
  • 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

Reply
  • 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

Children
No Data