The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Export image - white window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ohm

Czech Republic
Posts

Posted - 05/13/2006 :  07:53:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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();

Mike Buess

USA
3037 Posts

Posted - 05/13/2006 :  12:50:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

easwar

USA
1965 Posts

Posted - 05/13/2006 :  6:17:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000