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 3937530
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:04:46+00:00 2026-05-20T00:04:46+00:00

Is it possible to use System.Drawing.Image in an RDLC Image Control? All I have

  • 0

Is it possible to use System.Drawing.Image in an RDLC Image Control?
All I have been reading were 3 methods:

  • database
  • embeded resource
  • external file

Thank you thank you.

EDIT:
Following up from this .NET or C# library for CGM (Computer Graphics Metafile) format? I now got the image in System.Drawing.Image format and want to display it as part of the report (as an image) — that’s what I want to do.

  • 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-20T00:04:46+00:00Added an answer on May 20, 2026 at 12:04 am

    Not sure if this is what you are looking for, but if you have an image in code and you want to show it in the report, create a wrapper object that has a property that returns the image as a byte array and give then an instance of this wrapper-class with the valid image to the report as a ReportDataSource.

    Something like:

     ReportDataSource logoDataSource = new ReportDataSource();
     logoDataSource.Name = "LogoDS";
     logoDataSource.Value = new List<LogoWrapper>() { yourLogoWrapper };
     localReport.DataSources.Add(logoDS);
    

    In the report you then you can the image as it were from the database

     =First(Fields!LogoByteArrayProperty.Value, "LogoDS")
    

    The wrapper looks something like:

     class LogoWrapper{
       ...
       public byte[] LogoByteArrayProperty{
          get{ 
             // Return here the image data
          }
       }
     }
    

    I use this quite often. It has the advantage that I don’t have to add the image to the db or add it as a resource of every report. And furthermore, the app can say which image should be used.
    Please note, the given image format must be known from the rdlc-engine.
    The last question would be, how to convert a system.drawing.image to a byte array. I work with WPF and therefore, I dont known. But I’m sure google will respond to this question very reliable.

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

Sidebar

Related Questions

Is it possible to use the FromStream method of System.Drawing.Image without having to keep
Is it possible to use Visual Studio's testing system with native code? I have
Possible Duplicate: Use a System.Drawing.Printing.PrintDocument to generate a PDF in memory I wrote a
I have seen that it is possible to use addGlobalMonitorForEventsMatchingMask: to watch for system
Is it possible to use system.currency. It says system.currency is inaccessible due to its
Possible Duplicate: Why should I use templating system in PHP? I was just curious
I have recently started looking into Google Charts API for possible use within the
I need a control having these features: It should be possible use it in
Is it possible to either use the System.IO.Path class, or some similar object to
Is it possible to use the System.Transactions programming model without support for distributed transactions?

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.