07-03-17 08:03 PM
08-03-22 05:37 PM
08-03-22 06:00 PM
08-03-22 06:04 PM
08-03-22 06:29 PM
System.Drawing.dll
, System.Windows.Forms.dll
along with the 'Namespace Imports' as : System.Drawing
, System.ComponentModel
, System.Drawing.Imaging
and System.Windows.Forms
keeping the 'Language' as Visual Basic
under the 'Code Options' tab of your Page Description stage in the 'Initialise' action as shown below:Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppRgb)
graph = Graphics.FromImage(screenshot)
graph.CopyFromScreen(0, 0, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
screenshot.Save(Screenshot_File_Path+"\"+Screenshot_File_Name)
screenshot.Dispose
08-03-22 06:51 PM
30-05-23 02:34 PM
Hi Devneet,
is there any way to attach particular application and take only screenshot of it instead of full desktop screenshot and save it in some path ?
Iam developing a bot where we need to take screenshots of particular application by and save it in word file and export that word as PDF . Is there any way you can help with this ?
30-05-23 04:47 PM
Hi DilipKumar S,
Q) is there any way to attach particular application and take only screenshot of it instead of full desktop screenshot and save it in some path ?
Its definatley possible,
1) Calculate the dimensions from browser, when it is in maximize state
2) Pass the dimensions while taking the screenshot.
01-06-23 03:00 AM
Can you explain how to pass dimensions and take screenshot of the page ?