ReportViewer and ActiveX

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Soren S. Jorgensen

    #1

    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


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: ReportViewer and ActiveX

    Soren,

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

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Soren S. Jorgensen" <nospam@nodomai n.com> wrote in message
    news:uDW$WUvLGH A.2124@TK2MSFTN GP14.phx.gbl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Soren S. Jorgensen

      #3
      Re: ReportViewer and ActiveX

      > Unfortunately, there is no supported way to export a .NET control to[color=blue]
      > COM.[/color]

      Hi Nicholas,

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

      With new MFC 8 classes CWinFormsView, CWinFormsContro l and CWinFormsDialog
      you're able to "host" your .NET UserControls in MFC apps.
      Creating a MFC ActiveX and putting a CWinFormsContro l (hosting a
      Microsoft.Repor ting.WinForms.R eportViewer) 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


      Comment

      Working...