Solved

olecontainer

Posted on 1999-01-18
2
217 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 200 total points
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now