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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:16:56+00:00 2026-06-06T06:16:56+00:00

I want to create a graph in Excel with the spreadsheet reference. @model IEnumerable<ARTex.Core.Models.Reservation>

  • 0

I want to create a graph in Excel with the spreadsheet reference.

@model IEnumerable<ARTex.Core.Models.Reservation>

@{
    Layout = null;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AddHeader("Content-Disposition", "attachment; filename= Reservaties - " + DateTime.Now.ToString("dd/MM/yyyy") + ".xls");

}

    <?xml version="1.0" encoding="utf-16"?>

<ss:Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
<ss:Styles>
        <!--style reservation header-->
        <ss:Style ss:ID="1">
            <ss:Font ss:Bold="1" ss:Size="11" ss:Color="White"/>
            <ss:Interior ss:Color='Black'  ss:Pattern='Solid'/>
        </ss:Style>
        <!--style group/individual header-->
        <ss:Style ss:ID="2">
            <ss:Font ss:Bold="1" ss:Size="11"/>
            <ss:Interior ss:Color='#D9D9D9' ss:Pattern='Solid'/>
        </ss:Style>
        <!--style group/individual/reservation body-->
        <ss:Style ss:ID="3">
            <ss:Interior ss:Pattern='Solid' />
            <ss:Alignment ss:WrapText="1" ss:Vertical="Top"/>
        </ss:Style>
        <ss:Style ss:ID="4">
            <ss:Interior ss:Pattern='Solid'/>
        </ss:Style>
</ss:Styles>

@{Html.RenderPartial("_ExcelWorksheet", Model.Where(x => !x.Deleted), new ViewDataDictionary { { "sheetName", "Reservations" } });
  Html.RenderPartial("_ExcelWorksheet", Model.Where(x => x.Deleted), new ViewDataDictionary { { "sheetName", "Deleted Reservations" } });
  Html.RenderPartial("_ExcelGraph", Model,new ViewDataDictionary{ {"sheetname", "Graph" }});}}




</ss:Workbook>

this is my main .cshtml page and I want to create a graph with the Partial view page _ExcelGraph. I’m just trying to show the some basic output.

Code _ExcelGraph

@{ 

    var myChart = new Chart(width: 600, height: 400) 
        .AddTitle("Chart Title") 
        .AddSeries( 
            name: "Employee", 
            xValue: new[] {  "Peter", "Andrew", "Julie", "Mary", "Dave" }, 
            yValues: new[] { "2", "6", "4", "5", "3" }) 
        .Write(); 
}

This keeps giving me an image and I can’t seem to figure out how to place this image in a worksheet or how I can properly show it as a worksheet.

Thanks in advance.

Edit

Read somewhere that this ain’t possible with XML spreadsheet reference 2003 ?

  • 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-06T06:16:57+00:00Added an answer on June 6, 2026 at 6:16 am

    You cannot embed Charts in XML Spreadsheet 2003.

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

Sidebar

Related Questions

I want to create a graph of items on a certain day using data
I want create a excel with Apache POI in java and I must insert
I want to create new album via graph api for the page that user
I want to create a Login through Facebook on a website using Graph API
I want to create a graph, for example number of accumulative likes over time
I want to create the following type of graph with line, bar and heatmap
I want to create a separate function to get specific data from Facebook graph
I want to create a graph in my ipad which takes 3 to 4
I want to create a graph based on the combined value of several overlapping
I want to create a simple graph which will get the values and shows

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.