AlexeyRedko Posted June 28, 2011 Report Share Posted June 28, 2011 Hi, I'm trying to convert a chart to image (format is not the issue now), by export to stream and then create an image. This chart includes annotation (such as line and rectangle), and I set the chart size (width and height) before the export process start. The results of the export is chart without the annotation. If I'm using the Measure and Arrange methods the chart looks fine as a control but the Export process failed when I'm running on different thread. Sometimes I get "object reference not set to an instance of an object" fail message and sometimes I get an error that report on threading issue (cannot set object not form the thread its belong to). Note that the chart is local on its own thread. If I'm not adding any annotation and use only the Width and Height properties the export process not fail. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.