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-ddSMStretch.
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:
Report.Sections("PageHeader").Controls("Image1").Picture = LoadPicture("screen.bmp")