Odpovědět WPF UserControl as CustomReportItem

  • 24. dubna 2012 21:01
     
     

    Is there any way to use a WPF UserControl as a CustomReportItem for SSRS? In the draw method I'd like to create an instance of the WPF control and render it as a visual brush. The only problem is that WPF control can only be instanced in an STA environment. Creating a new thread in the STA environment in order to create the control works in VisualStudio, but deployed to the SQL Server, almost every time the thread starts in MTA mode - even though it was set to STA before it started.

    I know that starting an STA thread in an SQL Server context shouldn't be possible anyway - but is there really no solution for this problem?

    BR,

    Tristan

Všechny reakce