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-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")
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

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