Insert a table with images into a specific cell in Excel - asp.net-mvc

I have an ASP.NET MVC website and my client would like to export data to an excel spreadsheet but a certain template needs to be used. All the data is pulled dynamically from a MS SQL database.
I have used this thread as a start up point, open xml excel Insert actual value in the placeholder. It works well for me with regards to replacing placeholders in an excel template with data from the database.
However, I am completely stumped when it comes to placing a complete table with data directly into a cell, i.e. A10. Also, each row in the table has an image in the first column.
I thought about replacing the "{table}" placeholder with a html table containing the data, but with the research I have done, it doesn't look like that would work. If I am correct about it not working, could you please point me in the right direction?
Thanks in advance for any help.

I have found a solution using OpenXML through this tutorial by Eric White on the MSDN site.
Hope this can help someone else.

Related

Some fields in Google sheet are not recognized by GDS

I have a simple Google sheet that has 9 fields as shown below
Google sheet data source
When I connect this file as a data source using Google Sheets connector, I get ONLY 7 fields instead of 9 as shown below:
Data Source Editor
There are two missing files that cannot be recognized by GDS which are scenario and feedback fields respectively.
In order to solve this issue, I tried the following:
disconnect and reconnect the data source file again. But it did not work.
Also, I tried to use refresh fields but in vain too.
I tried also.
I could not find any reason for that behavior. please help if you can.
Here is a link to a sample Google Sheet file.
https://docs.google.com/spreadsheets/d/1GIHjwPp0uodUiJeXeX9RVr58hFz2re-6ilZYAeFU_Lc/edit?usp=sharing
Are these missing columns in your original google sheets file also empty? If yes, this is the reason why GDS is not recognizing those table. If you add some value in at least one row of these columns and reconnect the data source, they will show up.
If you intend to keep those columns empty for whatever reason, you can make a row with 'test' as values and filter those out in the report after connecting the data source.

Looking to add a dynamically adding rows table with multiple fixed columns which can fill value's to Google form and bring response to Google Sheets

I'm trying to create a table with editable cells in a google form that lets people enter their response. It would have multiple fixed columns and dynamically adding rows for more response.
Sample image of the desired table in google form for response
I am naive about building google forms and running scripts/codes on forms. A detailed explanation of steps will be of good help.
Thanking in advance to wonderful people who do such fabulous work
At the moment it is not possible to insert tables in Google Forms, not even via Apps Script, but since you are interested in learning about Forms and Scripts I would recommend you start with this quickstart about managing Form responses.
If you explain perhaps with more detail what your goal by inserting the table is, maybe there is a way with the available options in forms to achieve it.

How to make table like spreadsheet (include spanning) in iOS

Shortly, I want to make table in iOS.
For example, I take table data(like html table tag) from api server, parse it and draw editable table.
But, iOS System library don't offer col, row spanning. So, I want to know about open source, logic etc about table.
Please, Help me.

How to export data with Grid.mvc in ASP.NET MVC

I have data in Grid.MVC and now I want export data after filtered or sorted. I don't know how to do it.
Please help me.
Thank all.
I need to export the data in Grid.MVC to Excel. I used the solution in this link:
http://www.adambielecki.com/2013/05/exporting-data-to-excel-and-csv-in.html
It working but i have a problem, i want export data after filted or sorted.
So heres the help I can give you... I had to do this a few years ago with the same technology. Think of the Grid.MVC filtering as "client side". On the server's point of view, the bucket of objects filling the table has not changed when you do filtering, so what I had to do was hook into the filterboxes on the top of the grid by their css names and use a post back of filter objects to the viewbag which were then used in a linq query to filter the objects to the set I desired, from there I was able to export. This was super hard, and I cant access any of my old code b/c it was for a different company.
I would suggest not puttin the effort in, see if your users are okay with "post filtering" since excel is pretty much made to filter / sort data anyways.
Sorry I could not be more help but I hope this gets you started. good luck.

OpenOffice spreadsheet import into HSQLDB

OpenOffice ships with HSQLDB. Is it possible to easily import the contents of an OO spreadsheet into the built in database? An added nice to have would be to include the formatting of the cell contents. ie. colors, line feeds, etc.
This question has gone unanswered so I'm offering a bounty. Please provide the code to the solution.
The provided link does work, and no coding is required. To summarize:
Create and register an Open Office DB.
1.1 Looks like you can register any DB for which you have a JDBC driver. (ie. MySql,Postgres)
Create column headings in row 1.
Select data and copy it to the clipboard.
3.1 Limited selection to only the desired rows because OO crashed when I selected all rows.
Go to the Table (Tables pane) view of the database.
Right-click and paste your data.
Follow the instructions provided my the wizard that opens.
I don't know if you would call it easy, but apparently there are ways to import data into open office's base database.
This article explains how to manually import data into the database. And this article has more pretty pictures for the same process. One reason you may not be getting the answer that you want, is that there is very little detail in your question. You could add some more and maybe someone out there can help.

Resources