Jump to content
Software FX Community

Export chart to image issue


AlexeyRedko

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...