Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

olecontainer

Posted on 1999-01-18
2
Medium Priority
?
243 Views
Last Modified: 2010-04-06
The code:
  Excel.Charts.Add;
  Excel.ActiveChart.ChartType:=xlColumnClustered;
  Excel.ActiveChart.SetSourceData(Range,4);
  Excel.ActiveChart.ChartArea.Copy;
  OleContainer.Paste;
After paste,some part of the graph chart is outside the Container.
Although I zoom the olecontainer in designed time,
the chart is outside the olecontainer.
In run time,I open the chart and close it,
the chart resize and in the olecontainer.
Do you know how to paste it 'into' and 'match'  the
olecontainer? Tell me how to do. Thanks.


0
Comment
Question by:mathematics
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 800 total points
ID: 1362326
Set the SizeMode to smScale or smStretch. Or if you already do this try it again after doing the paste.

Cheers,

Raymond.
0
 

Author Comment

by:mathematics
ID: 1362327
Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question