I am currently developing a web application using teechart for asp.net version 3.2.3016.15522.
When I click on a button to call the below event to copy the image to the clipboard so that it can be pasted at the client side:
Code: Select all
wChart.Chart.Export.Image.Bitmap.CopyToClipboard()
How do I solve this issue?Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
Thanks.
Stephen