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
 All Forums
 Origin Forum
 Origin Forum
 problem with "Copy Page"

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Stanislaw Posted - 02/14/2009 : 08:03:18 AM
OriginPro 7.5 Server, WinXP

Hello,

I have the following problem with "copy page".
I've made a graph with two layers containing some plots (1st layer - left Y, 2nd layer - right Y). I've put two arrows indicating left and right Y. Then I've modified the content of each layer by adding and removing some plots. I've noticed that the arrows have disappeared (I haven't removed them). Then I've copied the page (Ctrl+I) to the MSWord. Please, guess what have been copied to the Word ....
the arrows !!
If I use "Export Page" the result is the same - the arrows!
Is there any solution for that problem ??
Certainly, I can create once more my graph but it would be waste of time.

Thank you for any comments in advance.

Stanislaw
4   L A T E S T    R E P L I E S    (Newest First)
Stanislaw Posted - 02/16/2009 : 1:27:35 PM
Hi Stanislaw,

In 7.5, in Tools->Options dialog, on the Page tab, you can change the Margin Control drop-down to Page and save the settings. The default I think is Tight. What Tight does is to include all objects in the smalles possible rectangle, and if there are objects way outside the "printable area" of the page, those get included and end up distorting what you want to copy. Tight is useful for customers who do not want "white space" around their graph, in cases where the layer and the objects do not cover the entire page.

In O8 we also added a 'tight in page' option which can also avoid capturing objects way outside the printable area.

Easwar
OriginLab

P.S. Oops I accidentally changed your posting, you had reported that you fixed the problem by realizing that arrow is attached to scale, so it gets pushed outside of the page and so gets included in the copy paste
Stanislaw Posted - 02/16/2009 : 05:18:25 AM
> The following functions did the trick for me
> void DeleteNamedGraphObject(string strObjectName)
> ..........
> void DeleteNamedObjectType(string strObjType)
> ..........

Thank you for the reply.
How to use these functions ? I'm not so familiar with the Origin.

Stanislaw
rlewis Posted - 02/15/2009 : 02:35:27 AM
The last time I faced a problem like this I found it simpler to write some small OriginC utility functions to delete the offending objects. The following functions did the trick for me


void DeleteNamedGraphObject(string strObjectName)
{
	/*
		Deletes graphobjects named "strGrOpjName" in all layers on the Active page
	*/
	Page Pg=Project.Pages();
	if(Pg.IsValid()==true)
	{
		foreach (Layer Layr in Pg.Layers)
		{
			GraphObject grobj(Layr.GraphObjects(strObjectName));
			{
				if (grobj.IsValid()==true)
				{
					grobj.Destroy();
				}
			}
		}
	}	
	
}

void DeleteNamedObjectType(string strObjType)
{
	/*
		Deletes named GraphbjectsTypes on all Layers of the Active page
	*/
	Page Pg=Project.Pages();
	if(Pg.IsValid()==true)
	{
		foreach (Layer Layr in Pg.Layers)
		{
			foreach (GraphObject grobj in Layr.GraphObjects)
			{
				if(grobj.GetObjectType().CompareNoCase(strObjType)==0)
				{
					grobj.Destroy();
				}
			}
		}
	}
}
Stanislaw Posted - 02/14/2009 : 3:32:54 PM
To be more precise: together with the arrows the graph is also copied, however it is positioned ca. two lengths of Y axis below the arrows. It is not possible to find those arrows to remove them, even if I'll use "zoom out" (Ctrl+M).

Stanislaw

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000