We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Cell Value not saved correctly

Thread ID:

Created:

Updated:

Platform:

Replies:

47212 Jul 31,2006 03:54 AM Jul 31,2006 10:31 AM Windows Forms 3
loading
Tags: XlsIO
Kai Wachter
Asked On July 31, 2006 03:54 AM

Hi Guys,

i try to insert Value 01.2004 which should represented as string, therefore i add the Abostophe before, so the cellvalue should be ''01.2004. But when i open the generated XLS the cell value is a number 37987. This worked fine with version 4.1. with 4.2 i got the error.

best regards,

Kai wachter

Melba Winshia [Syncfusion]
Replied On July 31, 2006 06:07 AM

Hi Kai,

Thank you for your interest in Syncfusion Essentail XlsIO. I am afraid that i was not able to reproduce this issue. If you could send us a sample , it will be helpful for us to debug.
I created a sample where the cell value should be displayed as 01.2004 and tested this sample using the version 4.2. It works fine for me.

Here is a sample for your reference:

celltype.zip


Please take a look at the attached sample and let me know if you have any questions.

Regards,
Melba

Kai Wachter
Replied On July 31, 2006 08:37 AM

i used Method Value2 or Value for setting the content.

best regards,
Kai

>Hi Kai,

Thank you for your interest in Syncfusion Essentail XlsIO. I am afraid that i was not able to reproduce this issue. If you could send us a sample , it will be helpful for us to debug.
I created a sample where the cell value should be displayed as 01.2004 and tested this sample using the version 4.2. It works fine for me.

Here is a sample for your reference:

celltype.zip


Please take a look at the attached sample and let me know if you have any questions.

Regards,
Melba

Melba Winshia [Syncfusion]
Replied On July 31, 2006 10:31 AM

Hi kai,

Thank you for using Essential XlsIO. I am able to reproduce the problem.
Normally if you give any data to value or value2 it will format the data.For example if you give date as input to value ie.
sheet.Range["A1"].Value="01/05/05";
The output will be formatted to
01/05/2005.

So to represent 01.2004 as string use the following code.

sheet.Range["A1"].Text = "01.2004";

Please let me know if you have any other questions.

Regards,
Melba


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;