I want to achieve the following -
1)Connect to SQL Server Database to get JSON data.
2)Use the JSON data to create spreadsheet like tables with multiple tabs.
3)The spreadsheet can be edited to have additional calculated features like math functions etc.
4)Create another tab depending on data present in the spreadsheet tabs
5)Publish this spreadsheet as a view only spreadsheet.
Is this possible? I am open to use any JS library.
I am looking for any excel like application which gives us the opportunity to create the spreadsheet with multiple tab + formulas and share/socialize it.
What is the best way/example to go about implementing this feature? I want it to work with AngularJS, JavaScript.
Like mentioned previously, the best solution for this would be to start with the Sheets API Quickstart for .NET here.
After you start getting a grasp on how the Sheets API works, you can easily connect to the SQL Server and retrieve the data you want in order to create a spreadsheet with your requirements.
You might find the following links useful:
spreadsheets.create - request to create a spreadsheet which will return the newly created spreadsheet
spreadsheets.values.batchUpdate - request to write multiple values in a spreadsheet
spreadsheets.values.append - request to append values to a spreadsheet
Reference
Sheets API Quickstart;
Google Sheets API Client Library for .NET.
Related
I am trying to access a sheet to get data and copy it in a data table I'm using the google sheets api v4 but I found that I must add the range to the request params.
Although I can't know how many columns has data in that sheet but the user is the one who set the spreadsheet url, so it varies and I can't find the specific range to add to the request.
So how can I find the range with contains all the data of that spreadsheet (knowing that all the spreadsheets the use can choose has only one sheet).
Answer:
Unfortunately, there is no way of retrieving the data range of a sheet using the Google Sheets API.
Workarounds:
Google Apps Script has a .getDataRange() method of the Sheet class, which returns in A1 notation the range in which data is present in a Sheet. There is a workaround here which incorporates this method, though I am unsure if it is suitable for your use case.
Feature Request:
You can however let Google know that this is a feature that is important for the Sheets API and that you would like to request they implement it. Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services. The page to file a Feature Request for the Google Sheets API is here.
References:
How to get data range of a sheet (Google Sheets API)
Google's Issue Tracker
Feature Request form for Google Sheets API
I have SSIS available to me. I currently have it configured to pull using oData connector. I'm hoping to be able to pull data stored on a sheet in SharePoint online. If I have to write a c# script I can do that as well. Any help appreciated.
have you seen this thread regarding Excel and SSIS? https://stackoverflow.com/a/45571274/6445723
It suggests fetching the excel file from SharePoint and afterwards loading each separately as a data source.
Alternatively if using SSIS is not a must, then you can look into using the Excel Graph REST API (Do not confuse this with the Excel Services REST API that has been available since SharePoint 2010 and is only relevant for on-premises deployments). Here is a link about this API: https://developer.microsoft.com/en-us/graph/examples/excel-workbook-integration
The advantage of the latter approach is that does not require a specific programming language: anything that you know well and can make a REST call will pretty much do.
Among Aspose and spreadsheet gear which one is best when it comes to transferring data from database to excel and reading data in an excel sheet using C#, or is there any other better suggestion for it. This should also include applying conditional formatting, chart preparation and all excel functionality via C#.
It has been a while since I tested Aspose but can say that SpreadsheetGear has been our spreadsheet API of choice for a number of years. We have done a lot of work mapping Spreadsheet data and complex functionality to SQL databases and to web applications and back again via C# - mostly with an ASP.Net Web API 2. Most Excel native functionality is available and aspects such as conditional formatting have been recently improved in the ssgear 2017 version.
Limitations to be aware of are that Excel Macros are not accessible from the API - we use C# to do that work. You can however add Macros to .xlsm template files for client download and use.
The API is very quick with small - medium spreadsheets (< 1MB) but larger spreadsheets (> 5MB) can be slow to work with. The problem here appears to be the load / open time of the spreadsheet rather than the speed of interaction. That is a particular problem with an API application where user activity is based on discrete requests rather than a continuous session where the open spreadsheet can be maintained in memory.
Support has always be very good both here and directly from SSGear.
I have an Excel file with a formatted table. Right now I have a database in sql server, I'm pulling the data into my c# asp.net program. I want to know if anyone has an idea of what I should try to use that Excel format to display data from a query at a webpage without having to go in and construct the table from scratch. I tried looking for a good tutorial on how to import an excel file and use it as a template for crystal reports, had no luck. Any advice would be greatly appreciated!
I have used a third party component called ASPOSE.NET to acheive this. ASPOSE provides extensive formatting options and support a wide variety of file formats.
However it is not a free product.
I want to show information from an excel spreadsheet in a web page. The xls will have maybe 5 columns, and as many rows as needed. The columns will be 'Name', 'Created Date', 'Expired Date', 'Owner', and maybe down the road maybe more.
What I would like is for the C# to nightly read the xls, and display the information in a table on the website.
If there is a PDF available for download I am going to link that as well.
Thanks in advance,
Gene
Here is an article describing how to read an Excel file using the OLEDB data provider.
However, this probably needs to live in a service or its own executable and kicked off with a scheduled job to fill some tables that your web page looks at.