ReportViewer and ActiveX

S

Soren S. Jorgensen

Hi,

I need to (somehow) show the ReportViewer (Microsoft Reports) in a ActiveX
control.

I got a 3rd. party app (SAP Business One) where I need to use the
ReportViewer and the only way to show the control (using SBO's internal API)
is through an ActiveX control.

I see no posiblity to "load" the ReportViewer control from COM (I could be
wrong here)

Has anyone an idea how to approach this ??
Any thoughts greatly appriciated...:)

Soren
 
N

Nicholas Paldino [.NET/C# MVP]

Soren,

Unfortunately, there is no supported way to export a .NET control to
COM.

Hope this helps.
 
S

Soren S. Jorgensen

Unfortunately, there is no supported way to export a .NET control to

Hi Nicholas,

Well - with a little C++ MFC programming there actually is !!

With new MFC 8 classes CWinFormsView, CWinFormsControl and CWinFormsDialog
you're able to "host" your .NET UserControls in MFC apps.
Creating a MFC ActiveX and putting a CWinFormsControl (hosting a
Microsoft.Reporting.WinForms.ReportViewer) on it, I'm now able to (at least)
show the viewer as an ActiveX control. Still needs to do some work mapping
events, properties ect - but I'm getting there :)

As the new MFC classes are fullt documenten, so must be the approach!!

Soren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top