| T O P I C R E V I E W |
| ohm |
Posted - 05/13/2006 : 07:53:28 AM Origin Version (Select Help-->About Origin): 7.5 Operating System: Windows XP Hello iam using this script for for export of conture plot window in to the BMP but if i export the window result is just blank screen can you please help me with this?
mp.LT_execute("Image.FileName$ = "+OUT_dir+"testik.BMP;");
mp.LT_execute("Image.showOptions = false;");
mp.LT_execute("Image.Export.PageDPI( BMP, 96, 24, 0 );");
mp.Detach(); |
| 2 L A T E S T R E P L I E S (Newest First) |
| easwar |
Posted - 05/13/2006 : 6:17:20 PM Hi,
What is mp in your code? Are you pointing to the matrix page instead of the graph page containing the contour plot? Need to export the graph page.
You can use image() function in Origin C, such as in the "Export all graphs to BMP" example on this page: http://www.originlab.com/index.aspx?s=9&lm=71&pid=268
Note also that LabTalk objects can be access in Origin C with code such as:
using image = LabTalk.image; image.filename$ = strFileName; image.showoptions = 0; //etc
Easwar OriginLab
|
| Mike Buess |
Posted - 05/13/2006 : 12:50:20 PM Your code works fine in Origin 7.0 SR4 and 7.5 SR6 so it should also work in your version. Are you sure that mp is attached to a valid graph window? (Can be either layer or page.)
Note however that LabTalk does not recognize true and false as 1 and 0. Image.ShowOptions = false is interpreted as Image.ShowOptions = 0/0 and the property will default to 0. Likewise, Image.ShowOptions = true will also default to 0.
Mike Buess Origin WebRing Member |