Question:
How can I print an application screen?
Solution:
To do so, access the E3Studio, create a Report, insert a Figure in PageHeader section without linking it to any images, and set up SizeMode property as 1-rv2Stretch.
Then, insert these two scripts:
1. Script in a Button to capture screen and print the Report. For example:
Application.CaptureScreen "screen.bmp" Application.LoadReport("[Report1]").PrintPreview()
2. Script in the Report’s PageHeader‘s OnBeforePrint to load the screen image captured by Figure object. For example:
Me.Picture1.Image = System.Drawing.Image.FromFile("screen.bmp")