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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:55:05+00:00 2026-05-29T21:55:05+00:00

I know there are similar questions about this topic,but somehow I’m not able to

  • 0

I know there are similar questions about this topic,but somehow I’m not able to crack this.

I googled this issue and got lot of references but none of them worked for me 🙁

I’m creating a crystal report which i will be using for badge printing.

Everything is fine except i want a barcode in the report which is not showing up.

I’m creating this barcode in runtime and saving it in the datatable which i bind to the report.

I know there are two ways to do that.

and I’m able to get the image using OLE Object,by specifying the Graphic property of the object to the database field which contains the path of the image.

but the Problem with this approach is that, i have to save the image and the number of badges can go up to 1 lakh and i don’t want to save 1 lakh image files on sever.

Rather i want to go for the other approach,To bind the Byte[] field to report but somehow that is not working for me.

Here is the code.

           System.IO.MemoryStream strmem = new System.IO.MemoryStream();

            bc.Save(strmem, System.Drawing.Imaging.ImageFormat.Tiff);

            Byte[] mybit = new Byte[strmem.Length];

            strmem.Read(mybit, 0, Convert.ToInt32(strmem.Length));

                dt.Rows[0]["Barcode_Image"] = mybit;

where dt is the table that i bind to the report and “Barcode_Image” is the System.Byte[]
field which contains the byte[] form of barcode image

I already have the Crystal Report Image handler in my web config.

Webconfig:
Assemblies

 <assemblies>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
</assemblies>

HTTPHandler in System.web

    <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
  <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </httpHandlers>

HTTPHandler in System.webServer

<system.webServer>
<handlers>
  <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
</handlers>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

Note: I’m using visualstudio 2010

kindly guide me,whee am i going wrong

  • 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-29T21:55:07+00:00Added an answer on May 29, 2026 at 9:55 pm

    The easiest way to print barcodes in Crystal Reports is to pass a string or integer to the report, and display the field using a barcode font. That way you don’t have to worry about storing actual image files in the database or passing said image data to Crystal.

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

Sidebar

Related Questions

I know there are questions similar to this one, but I've not found a
I know there are similar questions about this issue (for example, here and here
I know there have been some similar questions to this, but they haven't helped
I know there a lot of similar questions to this, but I didn't find
There are many similar questions to this one, but they all ask about setting
I know there are a few questions about similar topics but they mostly amount
So there are very similar questions about this, but none seem to solve what
I know there are multiple similar questions about this error, and I've tried many
I know there are similar questions out there, but I'm having trouble with this
I know there are a LOT of similar questions about this error (FOREIGN KEY

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.