Features
Server Load
Server Load
FlexSheet allows you to load an xlsx file or a Workbook instance on the server side.
Features
Server Load
FlexSheet allows you to load an xlsx file or a Workbook instance on the server side.
$0.00
$1.00
$2.00
$3.00
$4.00
$5.00
$6.00
$7.00
$1.00
$2.00
$3.00
$4.00
$5.00
$6.00
$7.00
$8.00
$2.00
$3.00
$4.00
$5.00
$6.00
$7.00
$8.00
$9.00
$3.00
$4.00
$5.00
$6.00
$7.00
$8.00
$9.00
$10.00
$4.00
$5.00
$6.00
$7.00
$8.00
$9.00
$10.00
$11.00
$5.00
$6.00
$7.00
$8.00
$9.00
$10.00
$11.00
$12.00
$6.00
$7.00
$8.00
$9.00
$10.00
$11.00
$12.00
$13.00
$7.00
$8.00
$9.00
$10.00
$11.00
$12.00
$13.00
$14.00
$8.00
$9.00
$10.00
$11.00
$12.00
$13.00
$14.00
$15.00
$9.00
$10.00
$11.00
$12.00
$13.00
$14.00
$15.00
$16.00
10
11
12
13
14
15
16
17
11
12
13
14
15
16
17
18
12
13
14
15
16
17
18
19
13
14
15
16
17
18
19
20
14
15
16
17
18
19
20
21
15
16
17
18
19
20
21
22
16
17
18
19
20
21
22
23
17
18
19
20
21
22
23
24
18
19
20
21
22
23
24
25
19
20
21
22
23
24
25
26
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
A
B
C
D
E
F
G
H
0
- Sheet1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using FlexSheetExplorer.Models; namespace FlexSheetExplorer.Controllers { public partial class FlexSheetController : Controller { public ActionResult ServerLoad( string loadType) { ViewBag.loadTypes = new string [] { "Xlsx" , "Workbook" }; object model; if (loadType == "Workbook" ) { model = WorkbookOM.GetWorkbook(); } else { loadType = "Xlsx" ; model = "~/Content/xlsxFile/example1.xlsx" ; } ViewBag.LoadType = loadType; return View(model); } } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | < div > < div class = "copy" > < h3 > @Html .Raw(Resources.FlexSheet.ServerLoad_Text3) </ h3 > < p > @Html .Raw(Resources.FlexSheet.ServerLoad_Text2) </ p > < p > @using (Html.BeginForm()) { @ (Html.C1().ComboBox().Name( "loadType" ).Bind(( string [])ViewBag.loadTypes) .SelectedValue((String)ViewBag.LoadType)) < button type = "submit" class = "btn btn-default" > @Html .Raw(Resources.FlexSheet.ServerLoad_Text4)</ button > } </ p > </ div > < div > @ (Html.C1().FlexSheet().CssClass( "flexSheet" ).Load(Model)) </ div > </ div > @section Summary{ < p > @Html .Raw(Resources.FlexSheet.ServerLoad_Text0) </ p > } |