Home > Software Creation > Components & Libraries > MayerSoft.Web.Controls.Spreadsheet by MayerSoft LLC
MayerSoft.Web.Controls.Spreadsheet 1.0
FAQ
What functions are supported (Sum(),Year(), etc.)?
All functionality from the .NET System.dll framework are supported. For example:
Basic math: [c0r0]+[c0r1]
System.Math namespace: Math.Pow(1+[c1r7],2)
Strings: "[c0r1]".Trim().Replace("$","").Substring(0,1)
Dates: DateTime d=new DateTime([c1r0]);return d.Year;
Formula cell references such as `[c0r1]` are replaced by the value of the cell, then evaluated. (Note that the value of a date cell is the number of ticks.) So the above examples might look like this before being evaluated:
Basic math: 100+200
System.Math namespace: Math.Pow(1+.045,2)
Strings: "$57".Trim().Replace("$","").Substring(0,1)
Dates:DateTime d=new DateTime(632272996777884556);return d.Year;
Formula cells are created like this:
Spread1.AddCell(new FormulaCell(1,6,"[c1r4]*[c2r6]","Formula",NumericFormats.ToTheDollar));
See below for more examples of how formula cells work. Note also that there are two kinds of formulas, simple and multiline. The example below shows both types of formulas.
Code used in this example
Initialization of a spreadsheet
Using MayerSoft.Web.Controls;
private void Page_Init(object sender, System.EventArgs e)
{
Spread1.LicenseKey="eL!NJ@2H3aF";//sample key
}
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
Spread1.Columns.Add(new Column(150));
Spread1.Columns.Add(new Column());
Spread1.AddCell(new Cell(0,0,"Item 1","Label"));
Spread1.AddCell(new Cell(0,1,"Item 2","Label"));
Spread1.AddCell(new Cell(0,2,"Total","Label"));
Spread1.AddCell(new Cell(0,3,"Div by pct","Label"));
Spread1.AddCell(new Cell(0,4,"Result","Label"));
Spread1.AddCell(new Cell(0,5,"Price
To link MayerSoft.Web.Controls.Spreadsheet, use following code:
If you don't want to link this page and only main page, you can use this logo: 
Write a review for MayerSoft.Web.Controls.Spreadsheet commercial
Featured Components & Libraries downloads
VISCOM DVD Author ActiveX OCX SDK 4.05
Convert DVD mpeg file to DVD Image(.ifo, VOB). Convert multiple videos to DVD Image without Menu. Menu Creation. Button Link Creation in Menu. Compatible with any programming language that supports ActiveX (Access, Visual C++ , Visual Basic ,
VISCOM TWAIN Scanner SDK ActiveX 3.05
Capture images from all the TWAIN compliant scanner and webcam devices. Has ability to adjust the scanner image resolution (DPI). Has ability to adjust the scanner pixel type, True color, B/W Color, Gray color.
VISCOM TIFF to PDF OCR OCX SDK ActiveX 5.0
Powerful image activex ocx, Loading, printing and save image files that include PDF,BMP, GIF, ICO, JP2, JPC, JPEG, PCX, PDF,PGX, PNG, PNM, RAS. Convert multipage TIF to multipage PDF. Read, write EXIF ,TIFF tags. Split, Merge Swap TIFF.
Client/Server Comm Lib for Delphi 5.0
The Client/Server TCP/IP component for Delphi library (CSC4D) for network communications allows multiple servers and clients to run simultaneously over a TCP network such as the Internet or intranet (LAN). Works with all versions of Delphi.
VISCOM Video Chat ActiveX OCX SDK 1.11
Live Video Conferencing (Peer to Peer). Send live video messages using your webcam. Send live audio messages using your microphone. Programmatically select the web cam to use. Single frame and image sequence capture.



