spreadsheetgear

Is there any way to specify the encoding used in SpreadsheetGear to generate CSV files?

自作多情 提交于 2021-02-08 06:39:39
问题 I am trying to export data containing Unicode characters from our system using Spreadsheet Gear to csv format. (Fine for excel). However because the CSV format is not UTF-8 encoded all the Unicode characters are exported as ??? I am aware that Spreadsheet Gear supports Unicode by having a tab-delimited UTF-8 text file, however we require the comma-delimited file. This is what currently exists (including my check that the Unicode Text file format exports the characters correctly): public

Localizing value for Excel cell using spreadsheetgear (.Net)

偶尔善良 提交于 2020-01-06 13:52:18
问题 I am trying to localize the excel cell value using .Net spreadsheetgear dll, When i try to generate the excel i am suing the portugese number format as "[=0]0;###.###,00" which should display the value as 2.265,65 , but this is not happening and it is displaying as 2,265.65( "." is not getting replaced with "," for portugese), Please help me is there any limitations in the excel or do we need to apply anyother number format Thanks Sudha 回答1: You can control some localization aspects of a

Localizing value for Excel cell using spreadsheetgear (.Net)

爱⌒轻易说出口 提交于 2020-01-06 13:52:13
问题 I am trying to localize the excel cell value using .Net spreadsheetgear dll, When i try to generate the excel i am suing the portugese number format as "[=0]0;###.###,00" which should display the value as 2.265,65 , but this is not happening and it is displaying as 2,265.65( "." is not getting replaced with "," for portugese), Please help me is there any limitations in the excel or do we need to apply anyother number format Thanks Sudha 回答1: You can control some localization aspects of a

IRange.Copy throws InvalidOperationException for merged cells

会有一股神秘感。 提交于 2019-12-25 01:52:37
问题 I am using below method to copy value without formula from a range of excel to the same range (basically removing formula). This range has 7 cells but they are merged. void Copy(IRange destination, PasteType pasteType, PasteOperation pasteOperation, bool skipBlanks, bool transpose); I am getting InvalidOperationException with message "Operation is not valid for a partial merged cell." SpreadsheetGear.Core Version - 8.0.63.102 This works well with single cell but not with merged cells.

C# SpreadSheetGear : #NAME? as Text if formula is applied to cell

不想你离开。 提交于 2019-12-24 18:51:25
问题 I am trying to get the text in a cell through spreadsheet gear library. There is a formula applied to a column C1 =GETURL(I2) and it is evaluating text which is something like "https://loremipsum.com/2345/view" I have another column C2 with a formula which outputs 'View' as Text =HYPERLINK(CONCATENATE("https://loremipsum.com/",[@[Customer CID]],"/view"), "View") Now, when i try to get the Text through C# code for cells in C2 column, I get "View" when I run the below statement and "#Name?" for

Simple HLOOKUP Failing with Excel 2010

a 夏天 提交于 2019-12-23 18:20:16
问题 I have an Excel spreadsheet (generated by spreadsheet gear, but it's more an Excel problem) that isn't functioning as i would expect when I use HLOOKUPS. I use a simple HLOOKUP to look up the value at a given percent in a table. For two certain values, the HLOOKUP fails. These values are 0.9993 and 0.999. This excel document demonstrates the problem: http://dsokol.com/tokio/excelna.xlsx. Cells C6 and C7 are showing as N/A, when they are intended to be populated with B and C. If I re-key over

Spreadsheetgear not loading

☆樱花仙子☆ 提交于 2019-12-22 01:08:46
问题 I receive this error whenever I reach the part of the code that generates an excel table. Unable to load SpreadsheetGear2012.Drawing.dll or SpreadsheetGear2012.Windows.WPF.dll which contain graphics capabilities. I tried uninstalling and reinstalling SpreadsheetGear; removing the assembly and bringing it back but the problem still persists. I'm using spreadsheetgear with c#. 回答1: One common reason this exception can occur is if you have multiple VS Projects that utilize SpreadsheetGear

FormatNumber replace Decimal with Comma using SpreadsheetGear dll

╄→尐↘猪︶ㄣ 提交于 2019-12-14 03:32:01
问题 I want to apply Format Number to a Excel Cell from VB.net using SpreadsheetGear dll as below This number 2,22,222.00 needs to convert to 2.22.222,00 My work: worksheet.Range(NumberRange).NumberFormat = "[=0]0;###,###.00" I am applying this format for English language, similar way I want number format to convert and display in the cell. 回答1: You can try this. CultureInfo.GetCultureInfo("PT").NumberFormat 来源: https://stackoverflow.com/questions/26294796/formatnumber-replace-decimal-with-comma

How to set default date format when load an xls file to SpreadSheetGear workbook?

对着背影说爱祢 提交于 2019-12-13 17:17:15
问题 When I load an xls file, which is created by the user, to SpreadSheetGear workbook it changes date format from dd/mm/yyyy to mm/dd/yyyy. How can I prevent this? I use the code below (VB.NET) to load xls file: WorkbookView1.ActiveWorkbook = SpreadsheetGear.Factory.GetWorkbookSet.Workbooks.OpenFromMemory(xlsFile) xlsFile is a Byte array. 回答1: I had the problem when importing excel xlsx to my site it was shifting the date from dd/MM/yyyy to MM/dd/yyyy though the system data was set to dd/MM/yyyy

SpreadSheetGear - read unique values from Excel column

女生的网名这么多〃 提交于 2019-12-13 04:45:56
问题 I want to read a column in Excel worksheet using SpreadSheetGear (.NET) and get unique values in that column back. Example: From the above Excel worksheet, I need to read column B and get back unique values "John" "Mike" and "Wayne" In real life, there can be 1,000,000+ rows so efficiency is important. How is that achieved? 回答1: I Understand that the post is quite old but could be helpful for others: The comment entered by @Michael Moreno will be helpful and I endorse the idea. But the