i`m trying to Log file save as Excel
I`m not good at English. Pleas understand
I have EventInfo.cs file
it consist of
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class EventLogInfo
{
public string Id { get; set; }
public string Camera { get; set; }
public string Device { get; set; }
public Int16 Region { get; set; }
public Int16 Event { get; set; }
there are Id, Camera, Device, Region, Event Items
i use
http://support.microsoft.com/kb/302084
and I can make it
like this
using System;
using System.Reflection;
namespace ExcelOutput
public partial class ExcelOutput : Window { public ExcelOutput() { InitializeComponent(); }
private void Button_Click_1(object sender, RoutedEventArgs e)
{
try
{
oSheet.Cells[1, 1] = "Id";
oSheet.Cells[1, 2] = "Camera";
oSheet.Cells[1, 3] = "Device";
oSheet.Cells[1, 4] = "Region";
oSheet.Cells[1, 5] = "Event";
<img src="http://www.hoons.net/FileUpload/201306/24/0624_2.jpg">
when i click Excel output button
Excel files are created
but i want to select Some Items (Id, Camera, Device, Region, Event)
save as Excel
What is the best way to select Items
and
How make Excel files
selected Items are sorted???