spreadsheetgear

How to add a triangle marker to any cell corner of SpreadsheetGear grid?

断了今生、忘了曾经 提交于 2019-12-12 19:55:53
问题 This is a SpreadsheetGear Grid specific question. I know you can add a comment to a cell and the cell gets red triangle marker at the top right corner automatically. But I have a need to add a small triangle (different color) to any cell corner to indicate something special. Is it possible to do it? UPATE: This is what I got for adding a triangle to any corner of the cell based on Daniel's suggestion. public void AddTriangleShapeToCorner(IWorksheet worksheet, int row, int col, CellCorners

Indexing with range names while using SpreadSheetGear's Advanced Cells API

眉间皱痕 提交于 2019-12-11 20:03:58
问题 I'm dealing with Excel file containing many sheets and even more formulas. I can reference all the 15K+ input cells with their range names, which is much nicer and readable than just using column-row indexes, like "AE2318" . Since the file is huge, I want to use SpreadsheetGear.Advanced.Cells interface to take advantage of any speedup possible. I noticed however that IValues interface can be indexed with 0-based row and column indexes. How could I still use range names to refer to cells? One

How to scroll to column in SpreadsheetGear WorkBookView control?

跟風遠走 提交于 2019-12-11 18:33:56
问题 I have to proofread about 30-35 spreadsheets every week. I need to look at column W and the columns to the right of column W. When I initially display the spreadsheet I see columns A-P. I manually scroll over to column W and begin proofreading the data. I click on a next button which steps to the next file. My code loads the next spreadsheet: WorkbookView1.ActiveWorkSheet = Workbook_Obj.ActiveWorksheet. WorkbookView1.Update() Sometimes the horizontal scroll position remains the same and I can

Opening xlsx file created with SpreadSheetGear

给你一囗甜甜゛ 提交于 2019-12-11 11:14:14
问题 I have created a simple Excel file using SpreadSheetGear. If I save it as an xls file workbook.SaveAs("file.xls", SpreadsheetGear.FileFormat.Excel8); and attach it to an email, I can open it on my phone (tested both with iPhone and Android). If I save it as an xlsx file workbook.SaveAs("file.xlsx", SpreadsheetGear.FileFormat.OpenXMLWorkbook); and attach it to an email, I CANNOT open it on my phone. If I open the xlsx file attachment on my computer and save it with no changes and attach it to

Hiding column and row headings in SpreadsheetGear control

冷暖自知 提交于 2019-12-11 10:14:10
问题 Is there a way to hide the A,B,C column headers and 1,2,3 row headers in the SpreadsheetGear 2010 control? We are using this as a display only control and showing these headings gives the impression that the data can be edited. Thanks. 回答1: I found it. It is in the WorkbookView.ActiveWorksheetWindowInfo.DisplayHeadings. You can show and hide several elements from this class, including gridlines, formulas and outlines. Cool. 回答2: I found it under WindowInfo. For example: IWorksheet ws = wb

Print excel (generated using Spreadsheetgear) in C#

泪湿孤枕 提交于 2019-12-11 01:38:33
问题 In c# i am generating an excel in specific format, i have to print the same excel format on click_print. P.s.-Microsoft Office not available,using SpreadSheetGear for this. 回答1: I recommend Chuck's answer if you have a UI and are utilizing the WorkbookView control. If you are generating this workbook in-code without a UI, you can also print a workbook by using the WorkbookPrintDocument class. Below is an example that demonstrates this in a console application: using SpreadsheetGear; using

Colour applying to all cells

倾然丶 夕夏残阳落幕 提交于 2019-12-10 23:48:09
问题 I am trying to apply colours to certain cells in a spreadsheet generated by Spreadsheet Gear. My current code var workbook = Factory.GetWorkbook(); var worksheet = workbook.Worksheets["Sheet1"]; // Set the new worksheet name worksheet.Name = "Group export"; var cells = worksheet.Cells; cells[0, 0].Style.Font.Size = 20; cells[5, 0].Value = "Default Values"; cells["A6"].Style.Interior.Color = System.Drawing.Color.FromArgb(166,166,166); //Line 86 However, when opening the spreadsheet, I find

freeze top row using spreadsheetgear

China☆狼群 提交于 2019-12-10 17:34:37
问题 How can I freeze top row (and only the row) using spreadsheetgear? when I try this: worksheet.WindowInfo.FreezePanes = true; It freezes both the top row and the first column (A). I only need it to freeze the top row. 回答1: After some research I found out I need to select the cell first and then set the FreezePanes property: worksheet.Cells[1,0].Select(); worksheet.WindowInfo.FreezePanes = true; Basically what happens is it freezes rows above and columns to the left of the selected cell. 回答2:

Best library to generate excel and charts in excel?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 03:47:56
问题 Which is the best 3rd party library to use for exporting data and generating charts in the Excel from Asp.net. I have researched on .Net and found the following: 1. EPPlus: Since we are to work in a very tight schedule and the project is also not too long, so we will not be having much time to resolve issues if we get stuck somewhere after using the component. Since that is an open source library, so the time guarantee to get a help to get the issue resolved cannot be there. 2.

Spreadsheetgear not loading

一个人想着一个人 提交于 2019-12-04 22:55:13
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#. One common reason this exception can occur is if you have multiple VS Projects that utilize SpreadsheetGear directly and indirectly, such as the following: Project A – utilizes SpreadsheetGear directly Project B – utilizes