echoi Posted May 29, 2012 Share Posted May 29, 2012 components.mygraph.printgraph() brings up export dialog box. is there a means to script so there is no user interface? as in components.mygraph.printgraph("Filename",BMP)? Link to comment Share on other sites More sharing options...
AzeoTech Posted May 31, 2012 Share Posted May 31, 2012 To capture a graph to image file from script you'd have to use the page.capture() function. That function allows you to specify the coordinates of the graph so you can trim the capture to just the graph. This function is described in section 7.14 of the user's guide. Note that it requires DAQFactory Standard or higher I believe. Link to comment Share on other sites More sharing options...
echoi Posted October 4, 2012 Author Share Posted October 4, 2012 is there a way to save it in wmf format? it's cleaner to include it in my report. Link to comment Share on other sites More sharing options...
AzeoTech Posted October 4, 2012 Share Posted October 4, 2012 Sure, right click on the graph and select "Export", then select the "MetaFile" option, along with "File" for the destination. You can programmatically trigger this dialog by using the following line of script: component.myGraph.printGraph() where myGraph is the name you gave the graph. Link to comment Share on other sites More sharing options...
Jonessy Posted October 18, 2012 Share Posted October 18, 2012 I would like to print graph from script just like I can do it from export/print menu, so just scaled to graph area, not to hole page and PDF format would be great. Can this be done? Link to comment Share on other sites More sharing options...
AzeoTech Posted October 18, 2012 Share Posted October 18, 2012 And not use printGraph()? You should duplicate the graph on another page without any of the ancillary stuff, the use page.printPage() to print the page. Note that you'll need to show that page at least once for it to print. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.