473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Excel in C# code - custom properties

Hello.
I'm losing a battle with operating on Excel files in C# code.
I want to open an *.xls file in a C# code, do some modifications and
save it to a text file.
But I need to modify some options, like: date format, text without
double quota, column delimeter, itp. In short: a lot of staff. I'm
sure that this is possible, but I've got no bloody idea how.
I'm trying to do some with Worksheet.CustomProperties, but I don't
know if it is a correct path.
Have anyone got any idea??
Thanks... marianowic

Aug 20 '07 #1
2 2295
Can you pls explain your self ? its very hard to understand the question.
--
Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/
"marianowic" wrote:
Hello.
I'm losing a battle with operating on Excel files in C# code.
I want to open an *.xls file in a C# code, do some modifications and
save it to a text file.
But I need to modify some options, like: date format, text without
double quota, column delimeter, itp. In short: a lot of staff. I'm
sure that this is possible, but I've got no bloody idea how.
I'm trying to do some with Worksheet.CustomProperties, but I don't
know if it is a correct path.
Have anyone got any idea??
Thanks... marianowic

Aug 20 '07 #2
On Mon, 20 Aug 2007 00:03:23 -0700, marianowic <ma********@gmail.com>
wrote:
>Hello.
I'm losing a battle with operating on Excel files in C# code.
I want to open an *.xls file in a C# code, do some modifications and
save it to a text file.
But I need to modify some options, like: date format, text without
double quota, column delimeter, itp. In short: a lot of staff. I'm
sure that this is possible, but I've got no bloody idea how.
I'm trying to do some with Worksheet.CustomProperties, but I don't
know if it is a correct path.
Have anyone got any idea??
Thanks... marianowic
Why don't you try opening using OLEDB drivers instead of Excel
directly and manipulating your data directly? Of course this will only
work if your worksheet is properly structured with headings

--
http://bytes.thinkersroom.com
Aug 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mabond | last post by:
Firstly I hope I'm in the right forum ..... if not can someone re-direct me please. I have an application with a main form properties set to mdiparent = true. Toolbar button allows user to open...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
1
by: MattC | last post by:
Hi, I am trying to export the contents of a DataGrid to Excel. I have already found the following articles: http://support.microsoft.com/default.aspx?scid=kb;en-us;317719...
1
by: Randall Arnold | last post by:
I'm converting a vbscript program to vb.net. Witht he exception of .net idiosyncrasies, most of it is working well with the same code. My only problem is that some properties and methods are...
0
by: mabond | last post by:
Firstly I hope I'm in the right forum ..... if not can someone re-direct me please. I have an application with a main form properties set to mdiparent = true. Toolbar button allows user to open...
7
by: Alan Roberts | last post by:
Can someone please explain the following for me... I am trying to link to a .NET DLL from Excel. Excel needs to pass a reference to itself to the DLL and then the DLL needs to perform some work...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
6
by: Sergio E. | last post by:
Hi, I'm looking for information about gridview's cell properties... I've the following case: one gridview with alternatirg row style and normalrowstyle, 3 o 4 custom styles that are applied to...
0
by: phancey | last post by:
hi, I am trying to call a WCF service from Excel VBA. I do not want to rely on anything installed on client machine apart from my Excel spreadsheet so I wanted to use the MEX method of invoking...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.