diff --git a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx index 874871e8a..57479e54d 100644 --- a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx +++ b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx @@ -190,14 +190,13 @@ -
- +
diff --git a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx.cs b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx.cs index 5570c48d9..a30d9e7de 100644 --- a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx.cs +++ b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Edit.ascx.cs @@ -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 @@ -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 @@ -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; diff --git a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Export.ascx b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Export.ascx index e09c4689a..43f8d781e 100644 --- a/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Export.ascx +++ b/Plugins/SiteFinity/Aspose.SiteFinity.FormBuilder.ToExcel/Aspose.Sitefinity.FormBuilder/Export.ascx @@ -1,4 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Export.ascx.cs" Inherits="Aspose.Sitefinity.FormBuilder.Export" %> +
Field Name