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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:48:30+00:00 2026-06-13T16:48:30+00:00

I am using MVC3. I am showing some content and chart(chart using jqplot) in

  • 0

I am using MVC3. I am showing some content and chart(chart using jqplot) in a view. Now I want to export the content and chart to excel. I’ve already done exporting content to excel. Now I want to add image to excel. I’ve already converted chart to image and assigned as a source to one image in a view. Now is it possible to add that image to excel content from controller by taking that image source and something like that?

  • 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-06-13T16:48:31+00:00Added an answer on June 13, 2026 at 4:48 pm

    You can try to use EPPlus library http://epplus.codeplex.com/.

    You do not need to convert chart to image and insert it into Excel, you can create chart with this library same as one in your app.

    Example of adding image to Excel using EPPlus (this is only example, not full code):

    using (System.Drawing.Image img = /*...Load image here...*/)
    {
    if (img != null)
    {
        //set row height to accommodate the picture
        ws.Row(currentRow).Height = ExcelHelper.Pixel2RowHeight(pictureHeight + 1);
    
        //add picture to cell
        ExcelPicture pic = ws.Drawings.AddPicture("PictureUniqueName", img);
        //position picture on desired column
        pic.From.Column = pictureCol - 1;
        pic.From.Row = currentRow - 1;
        pic.From.ColumnOff = ExcelHelper.Pixel2MTU(1);
        pic.From.RowOff = ExcelHelper.Pixel2MTU(1);
        //set picture size to fit inside the cell
        pic.SetSize(pictureWidth, pictureHeight);
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MVC3 Razor, I have a partial view with some text, two text boxes
I'm using MVC3 with razor view. I'm giving the user a list of <li>
I'm using MVC3 with a detailed view that needs to display a formatted dollar
I'm using MVC3 .NET4.0 (VB), and I'm seeing some strange behavior on a simple
I am using MVC3, EF Model first on my project. I have a view
I want to designing an application Where i need to generate some partial view
Iam devloping web application with mvc3.In one my view iam using WebGrid.In webgrid pager
I'm using asp.net MVC3 and i want to show a table containing information about
Using MVC3 and Razor View engine, I created a VB.NET web application in VS
I have an asp.net mvc3 site that is showing some odd behavior when clicking

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.