Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4590352
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:14:23+00:00 2026-05-21T22:14:23+00:00

I have a web app and a winforms app – both of them display

  • 0

I have a web app and a winforms app – both of them display reports via the standard web/winforms ReportViewer controls. (Using VS2010 / .Net 4.0 btw).

I also have a shared library that returns the ReportParameter objects for the reports being generated. I ran into little issue with the ReportParameter’s being returned though:

The Winforms ReportViewer uses ReportParameter from Microsoft.Reporting.WinForms namespace.
The WebForms ReportViewer uses ReportParameter from Microsoft.Reporting.WebForms namespace.

Is there a generic ReportParameter class I can use to share reportparameters from web vs winforms? Or is there a built-in utility to easily translate between the two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:14:24+00:00Added an answer on May 21, 2026 at 10:14 pm

    I know it is old, but I had the same question today so figured I would provide an answer.

    I couldn’t find anything definitive, so I pulled out ye-old-reflector… and I chose to use Microsoft.ReportViewer.WebForms because it referenced a subset of the assmblies referenced by Microsoft.ReportViewer.WinForms.

    Specifically…

    WebForms referenced:

    • Microsoft.ReportViewer.Common
    • mscorlib
    • System
    • System.Configuration (Not Referenced by WinForms)
    • System.Data
    • System.Drawing
    • System.Web
    • System.Web.Services
    • System.XML

    WinForms referenced:

    • Microsoft.ReportViewer.Common
    • mscorlib
    • System
    • System.Data
    • System.Drawing
    • System.Web
    • System.Web.Services
    • System.Windows.Forms (Not referenced by WebForms)
    • System.XML

    If I am going to be pulling in an assembly reference to System.Web regardless, I might as well avoid the System.Windows.Forms reference impo.

    EDIT
    Also, as for passing around ReportParameter across references, you will pretty much have to re-map them accordingly. Either via wrapper, or some Mapping extension method would do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web browser in our Winforms app to nicely display history of
I have a winforms app, that's locking up during a web service request I've
I have a web page that is being displaying in a winform app using
I have a web app which connects to a server using a TCP connection
I have C# code I want to use in both a WinForms app and
I have a winform app that calls a web service to check for updates.
need ask you about some help. I have web app running in Net 2.0.
I have a web app for commercial property management that needs spreadsheet-like functionality for
I have a web-app-database 3 tier server setup. Web requests data from app, and
I have a web app that is heavily loaded in javascript and css. First

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.