Skip to main content
InSource Solutions

TN IT364 Saving Intouch windows in runtime

Description

 

This article from InSource shows you how to save an InTouch window in runtime as a pdf.

  • Author: Chris Cleope
  • Published: 12/16/19
  • Applies to: All version of Intouch

Details

You can refer to "How to print a InTouch window" to get the custom script to get this to work.

SetWindowPrinter( PrinterName );

PrintWindow( Window, Left, Top, Width, Height, Options );

  1. Create a button with an action script: (This way will only work with Windows 10 as the Print to PDF is already installed on the machine by default. 

SetWindowPrinter( "Microsoft Print to PDF" );
PrintWindow( "Test 2_bak", 1,1, 5, 5, 1 ); 

clipboard_ed73990142a3b4c05c8bf1e261716fc35.png

  1. On other operating systems, the same script can be used but you would need to download a PDF writer. 

SetWindowPrinter( "CutePDF Writer" );
PrintWindow( "TEst 2_bak", 1,1, 5, 5, 1 ); 

You can download a free one here called CutePDF writer: https://www.cutepdf.com/Products/CutePDF/writer.asp

This allows you to print as a PDF on other machines that are not on Windows 10.

 

Save as a CutePDF example:

clipboard_eea9483075baa2644031e05ee627683ea.png

Save on a windows 10 machine: 

clipboard_e8127327493f63735e703c6e6c6b6509e.png

 

You will need a 3rd party PDF program to open this. (Adobe reader, etc...)

 

End result:

clipboard_e8cd84735c82f4154f9d9319bb05fc704.png

 

  • Was this article helpful?