Rob Posted October 26, 2021 Share Posted October 26, 2021 For some reason, when I perform a page.capture of a graph, the resultant .jpegs are all the same size and completely black Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted October 26, 2021 Share Posted October 26, 2021 What release of DAQFactory are you using? Can you post or email us a sample? Quote Link to comment Share on other sites More sharing options...
Rob Posted October 27, 2021 Author Share Posted October 27, 2021 I am currently using 17.1 release. Quote Link to comment Share on other sites More sharing options...
Rob Posted October 27, 2021 Author Share Posted October 27, 2021 This is the image captured manually This is the image captured via sequence: page.Capture("TURB_KW_GRAPH","C:\DAQFactory\UNIT_KW_REPORTING.jpeg") Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted October 27, 2021 Share Posted October 27, 2021 What do you mean by manually? With the PrtSc key? So I gave it a try and initially it failed because I am running a 4k screen. It probably would have completed but I got tired of waiting. So, I added screen coordinates to my capture so that I only got the part I wanted. Then it went really fast and gave me what I wanted. You should try that. For example: page.Capture("TURB_KW_GRAPH-0,0,500,500","C:\DAQFactory\UNIT_KW_REPORTING.jpeg") You can get the exact coordinates of the graph component by selecting it, and viewing the position parameters in the docking Properties window (View-Properties). Note also that in 17.1 and earlier you have to view the graph at least once on the screen before capturing it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.