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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:34:02+00:00 2026-05-12T23:34:02+00:00

In writing some tests for a project I’m working on, I found that the

  • 0

In writing some tests for a project I’m working on, I found that the best way for me to get the data back I needed about whether the project was correct was to put results into an ADO.NET DataTable. I got sick of setting breakpoints and waiting for them to be hit so that I could use the DataSet Visualizer to see what my results were, and I wanted to be able to see the results after the test was finished, so I decided to find a quick and dirty way to write the DataTable to a file.

After poking around in Intellisense to try and find a good way to get my DataTable out to a file, I googled a bit and found somebody who had written some code to write a DataTable out to a table in an html file. I spent a few minutes and implemented my own version of this and went on my merry way. I like the html solution because it was super easy to implement, it’s totally portable, and it’s easy to refresh the page and see the latest test results after making changes to my code.

At this point I’m wondering, however, did I miss an easier/better way of doing this? Keep in mind, the requirements are to be able to visualize the table in actual table form, not serialized as XML or any other less readable format, and it needs to be in a file on the hard drive so that I can come back to it. Any ideas?

  • 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-12T23:34:02+00:00Added an answer on May 12, 2026 at 11:34 pm

    I once wrote a series of extension methods to dump a DataTable to CSV quickly… the version on here is only half the solution, but it will allow you to do a one liner dump to CSV. The other half of the solution is just some gold-plating to allow you to choose specific columns, and do custom text formatting. If you are interested I can get that portion to you as well.

    I don’t know that it provides a better visualization than HTML, but having it in Excel certainly makes for a nice way to sift and sort the data.

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

Sidebar

Related Questions

I was writing some Unit tests last week for a piece of code that
I am currently writing some unit tests for a business-logic class that includes validation
I'm writing tests for a business method that invokes some DAO classes to perform
I'm writing some unit tests for a Django project, and I was wondering if
I'm writing some unit tests for some controller methods in my project and am
I'm writing some tests in Perl which have a fair amount of set up.
I'm writing some unit tests which are going to verify our handling of various
I am writing some UI tests using Selenium and i have a JavaScript Tree
I am in the process of writing some unit tests for my controllers in
I am writing unit tests for some of my code and have run into

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.