471,598 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

ReportViewer and ActiveX

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
Feb 11 '06 #1
2 2988
Soren,

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

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Soren S. Jorgensen" <no****@nodomain.com> wrote in message
news:uD**************@TK2MSFTNGP14.phx.gbl...
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

Feb 11 '06 #2
> Unfortunately, there is no supported way to export a .NET control to
COM.


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
Feb 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Fabio Pagano | last post: by
1 post views Thread by steve | last post: by
reply views Thread by Fred G. Sanford | last post: by
reply views Thread by billygotee | last post: by
5 posts views Thread by =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.