Skip to content

Commit

Permalink
Merge pull request #34 from jawadaspose/master
Browse files Browse the repository at this point in the history
Updated - Sitefinity Dynamic Form Builder using Aspose.Cells
  • Loading branch information
AamirWaseem committed Mar 10, 2016
2 parents c189088 + ee28a84 commit 7a449f5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,13 @@
<legend align="center" class="legend">
<img src="Addons/Aspose.SiteFinity.FormBuilder.ToExcel/Uploads/Images/aspose_logo.gif" style="vertical-align: bottom;" /><label class="clslabel">Manage Form Fields</label></legend>


<div class="form-groupMessage">
<div>
<asp:label id="lbl_Msg" runat="server" text=""></asp:label>
</div>
</div>

<table class="table table-bordered">
<table class="table">
<thead>
<tr>
<th>Field Name</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,9 @@ private void PopulateGrid()
license.SetLicense(licenseFile);
}


//Creating a file stream containing the Excel file to be opened
FileStream fstream = new FileStream(Server.MapPath("~/uploads/AsposeDynamicFormsDataFile.xlsx"), FileMode.Open, FileAccess.Read);
FileStream fstream = new FileStream(Server.MapPath("~/Addons/Aspose.SiteFinity.FormBuilder.ToExcel/uploads/AsposeDynamicFormsDataFile.xlsx"), FileMode.Open, FileAccess.Read);

//Instantiating a Workbook object
//Opening the Excel file through the file stream
Expand Down Expand Up @@ -510,7 +511,8 @@ protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
selectedRow = Convert.ToInt16(SetupSeletectedItemID);

//Creating a file stream containing the Excel file to be opened
FileStream fstream = new FileStream(Server.MapPath("~/Uploads/AsposeDynamicFormsDataFile.xlsx"), FileMode.Open, FileAccess.Read);

FileStream fstream = new FileStream(Server.MapPath("~/Addons/Aspose.SiteFinity.FormBuilder.ToExcel/uploads/AsposeDynamicFormsDataFile.xlsx"), FileMode.Open, FileAccess.Read);

//Instantiating a Workbook object
//Opening the Excel file through the file stream
Expand All @@ -523,7 +525,7 @@ protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
fstream.Close();
selectedRow = selectedRow + 1;
worksheet.Cells.DeleteRow(selectedRow);
workbook.Save(Server.MapPath("~/uploads/AsposeDynamicFormsDataFile.xlsx"), SaveFormat.Xlsx);
workbook.Save(Server.MapPath("~/Addons/Aspose.SiteFinity.FormBuilder.ToExcel/uploads/AsposeDynamicFormsDataFile.xlsx"), SaveFormat.Xlsx);
dataTable = worksheet.Cells.ExportDataTableAsString(0, 0, worksheet.Cells.Rows.Count, 10, true);
Session["AsposeDynamicFormsdataTable"] = dataTable;
lbl_Msg.Visible = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Export.ascx.cs" Inherits="Aspose.Sitefinity.FormBuilder.Export" %>


<style type="text/css">
.Success {
Expand Down Expand Up @@ -156,8 +157,6 @@
<fieldset class="fieldset" align="center">
<legend align="center" class="legend">
<img src="Addons/Aspose.SiteFinity.FormBuilder.ToExcel/Uploads/Images/aspose_logo.gif" class="clsImage" /><label class="clslabel">Manage Form Fields</label></legend>


<div>

<label class="clslabel">Select Export Type </label>
Expand All @@ -173,10 +172,12 @@
</asp:dropdownlist>
<br />


<div class="bottomPadding">
<asp:button id="btnExport" cssclass="btn3" runat="server" visible="true" onclick="btnExport_OnClick" text="Export Data"></asp:button>
<asp:button id="btnback" cssclass="btn3" runat="server" visible="true" onclick="btnback_OnClick" text="Back"></asp:button>
</div>

</div>

</fieldset>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<div class="ajust" role="form" align="center">
<fieldset class="fieldset">
<legend align="center" class="legend">
<img src="Addons/Aspose.SiteFinity.FormBuilder.ToExcel/Uploads/Images/aspose_logo.gif" />
<img src="Addons/Aspose.SiteFinity.FormBuilder.ToExcel/Uploads/Images/aspose_logo.gif"/>
<asp:Label ID="lblTitle" runat="server"></asp:Label>
</legend>
<div class="form-group">
Expand Down

0 comments on commit 7a449f5

Please sign in to comment.