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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:45:27+00:00 2026-06-09T03:45:27+00:00

I have produced a solution in a C# web app that runs a report

  • 0

I have produced a solution in a C# web app that runs a report which returns a DataSet containing 9 Datatables.

The tables are linked with many-to-many relationships, and the purpose of the report is to produce a snapshot of the progress on records contained in the tables for anyone point in time.

This dictates that all 9 tables are queried at once, as querying the tables individually at different times will mean that the results dont match up between tables.

I was returning the 9 csv files in a zip file, which worked fine in development. However, in the organisation I am working for a lot of user’s machines are very limited and we cannot rely on them having winzip or some other archiving software, and as such I have been told to find an alternative solution.

So far, the problems I have come up against are:

  1. All 9 datatables must be produced from the same query, which rules out giving users the option to run the report against tables individually as the results may not match up if they are run at different times of the day.

  2. I can only return one file at a time to the browser, which stops me returning the collection of csv files unzipped.

  3. I did think about returning the data as separate tabs on an excel workbook, however some of the results have leading zeros, which will be trimmed off when they are loading into the worksheet.

It would be great if anyone knew of an obvious solution I’m missing?

  • 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-09T03:45:28+00:00Added an answer on June 9, 2026 at 3:45 am

    Using DotNetZip, you can zip and unzip files like so:

    using Ionic.Zip;
    
    namespace ConsoleApplication23
    {
        class Program
        {
            static void Main(string[] args)
            {
                //Zip your files like so
                ZipFile x = new ZipFile();
                x.AddFile(@"C:\myFile");
                x.AddFile(@"C:\mySecondFile");
                x.Save(@"c:\myZipFile.zip");
    
                //Unzip like so
                ZipFile y = ZipFile.Read(@"c:\myZipFile.zip");
    
                foreach (ZipEntry e in y)
                {
                    e.Extract(@"c:\test", ExtractExistingFileAction.OverwriteSilently);
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application which runs on MySQL, and uses Java, Struts2 and
Problem Overview I have a dynamically produced web page, X , which consists of
I have a rest enabled web service exposed which returns RETURN_OBJ . However, RETURN_OBJ
I have some data (produced by a legacy application) that I know is invalid
I have an array that is produced from people wanting to reserve a time
I have some HTML that is being produced by a WordPress plugin that is
I am developing a Web Service solution that is hosted inside a JBoss 4.2.3
We have a database that persist our metadata and data. Our metadata is produced
Over the last few days I have noted a few web sites that demonstrated
I have a VC++ 2010 solution with multiple project, one of which is a

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.