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

  • Home
  • SEARCH
  • 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 612105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:51:26+00:00 2026-05-13T17:51:26+00:00

I am in a process of building an intranet application entirely using silverlight 3.

  • 0

I am in a process of building an intranet application entirely using silverlight 3. On one of the page, I need to generate an excel report. Users can select few parameters through UI and will hit submit button, then silverlight shall generate an excel report & popup a window allowing users to save the generated report.

Is there anyway to implement this in easy and straight forward way?

The following are the steps I could think of but still not completely clear how to approach this problem.

  1. User selects few comboboxes, and selects listbox
  2. User hits the submit button
  3. btnSubmit_Click(submit button click event handler) will call “takeQueryParamsAsync” WCF service call
  4. WCF service on server side creates a dynamic sql query and executes the query and fetches the data
  5. Silverlight client gets notified that fetching data is completed by calling the callback function “takeQueryParamsAsync_Completed”

now how the silverlight client requests the generation of the report from the server and how will it give generated report to the user? Does it have to call another wcf service in the “takeQueryParamsAsync_Completed” callback function to request the report file from the fetched data? If so how will wcf service remember that it is the same client that requested data fetch from db with those specific query parameters? Do I have to maintain state between wcf service and silverlight? Isnt there any simpler solution?

client side excel report generation is not an option(because the generated excel file shall contain excel charts). Is it really that hard? or Am I just overcomplicating myself not knowing how to implement it?

Any pointers or code samples will be great. Thank you.

I am sure that there should be an elegant solution for this.

  • 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-13T17:51:26+00:00Added an answer on May 13, 2026 at 5:51 pm

    If you have ASP.NET available you could create a HTTP handler which you could call using the HTML bridge in Silverlight which would take your report parameters in the querystring. Then generate the report and send it back to the client.

    string printUrl = string.Format("createxlsreport.ashx?param1={0}", param1);
    HtmlPage.Window.Navigate(new Uri(printUrl, UriKind.Relative), "_blank", "toolbar=yes,location=no,status=no,menubar=no,resizable=yes");
    

    Send the file back to the client:

    private void SendFileToClient(byte[] file, string fileName)
    {
        HttpResponse Response = HttpContext.Current.Response;
        Response.Clear();
        Response.AddHeader("Content-Disposition", string.Format("attachment; filename={0}", fileName));
        // Add a HTTP header to the output stream that contains the 
        // content length(File Size). This lets the browser know how much data is being transfered
        Response.AddHeader("Content-Length", file.Length.ToString());
        // Set the HTTP MIME type of the output stream
        Response.ContentType = "application/vnd.ms-excel";
        // Write the data out to the client.
        Response.BinaryWrite(file);
        Response.End();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of building a support page for my pre application. I'm
I'm in the process of building a report and I'm stuck with one requirement.
I'm in the process of building a web application using cherrypy. What template technology
We're in the process of building a MOSS site and one of the 3rd
I am in the process of building a system where I need to notify
What is Eclipse doing when building workspace process is running? Can i disable it
Im building a web application which is a process management app. Several different employee
I am building a local intranet web application which uses the current user's AD
I'm in the process of building my svcutil command line to generate business objects
I am in the process of building a rails/flex application which requires audio to

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.