• Print subdata window

    From Rolf@21:1/5 to All on Thu Mar 24 03:06:37 2022
    Hello,
    my name is Rolf and I live in Germany and I am new here.
    My question is :
    I would like to print a complete subdata window. So far I have only been able to print the visible part with the scrollbars using the tips from this forum.
    Is there a possibility to print the complete subdata window?
    I would be grateful for an example.

    Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Franz Rachbauer@21:1/5 to All on Thu Mar 24 17:59:19 2022
    Do you mean all records of the server behind the subdata window?
    If so you can loop through this server and print all fields using
    ReportPro or print it manually. You have to design the output by
    yourself, its not a hardcopy of the window.
    Franz

    Am 24.03.2022 um 11:06 schrieb Rolf:
    Hello,
    my name is Rolf and I live in Germany and I am new here.
    My question is :
    I would like to print a complete subdata window. So far I have only been able to print the visible part with the scrollbars using the tips from this forum.
    Is there a possibility to print the complete subdata window?
    I would be grateful for an example.

    Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf@21:1/5 to All on Fri Mar 25 03:49:35 2022
    Hello Franz,

    I have a Data-Dialog Window with a Sub-Data Window.

    The Sub-Data Window is not connected to any server. It contains a combination of texts and graphics. The content of the Sub-Data Window is often larger than the actual Sub-Data Window, so there are scrollbars for scrolling.

    With the simple method Sub-Data-WIndow:Print() only the visible part of the Windows is printed. I have been looking for alternatives here in the forum for the last few days and have found them. But even the alternatives only print the visible part.

    It would help me if I could save the complete content of the sub-data window as a graphic.

    Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Riedmann@21:1/5 to Rolf on Tue Mar 29 06:05:24 2022
    Hi Rolf,

    unfortunately this is not possible easily, as the non visible parts of
    the window are not rendered on the screen, and therefore the Print()
    method of the window cannot copy them.

    If you need that really, you have to get the controls manually from the
    window using the Windows API, retrieve their coordinates and fonts and
    render them on the print surface.

    I don't know if some advanced screenshot tools can accompish that
    scrolling the subdatawindow on purpose.

    Your best bet would be to enlarge the main window as possible to show
    the entire subdata window.

    Wolfgang

    Rolf wrote:

    Hello Franz,

    I have a Data-Dialog Window with a Sub-Data Window.

    The Sub-Data Window is not connected to any server. It contains a
    combination of texts and graphics. The content of the Sub-Data Window
    is often larger than the actual Sub-Data Window, so there are
    scrollbars for scrolling.

    With the simple method Sub-Data-WIndow:Print() only the visible part
    of the Windows is printed. I have been looking for alternatives here
    in the forum for the last few days and have found them. But even the alternatives only print the visible part.

    It would help me if I could save the complete content of the sub-data
    window as a graphic.

    Rolf



    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf@21:1/5 to All on Thu Mar 31 04:37:58 2022
    Hello Wolfgang,

    I will take your tips into account.

    Thank you very much.

    Rolf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)