KB-29202: Printing an application’s screen.

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")
Este artigo foi útil? Was this post helpful?
Yes0
No0

Leave a Reply

Your email address will not be published.Required fields are marked *