Profile Picture

Current thread must be set to single thread apartment (STA)

Posted By Mike O'Ceirin 4 Years Ago

Current thread must be set to single thread apartment (STA)

Author
Message
Mike O'Ceirin
Problem Posted 4 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 22, Visits: 184
I am trying to put a chart image into the clipboard. It seems it requires single threading how do I implement this? It occurs in debug mode and also occurs when the asp.net project is published on the net. How can I implement it please.
I get the message in the subject line when I try to run the following code
   protected void ChartClip_Click(object sender, EventArgs e)
   {
    NImageExporter imageExporter = this.chartControl.ImageExporter;
    imageExporter.CopyToClipboard(imageExporter.DefaultImageSize, NResolution.ScreenResolution, new NJpegImageFormat());
   }





Similar Topics


Reading This Topic