React - export excel with image in cell - reactjs

I would like to export a table data to an excel file.
I've got images in my data, and instead of see the url image, i want to have the image in cell.
I doesnt find any library to do it.
do you know one of it ?
Thanks

Related

TipTap React Image Uploader with Placeholder

I am trying to build plug in the image extension (#tiptap/extension-image) to my tiptap editor, however the issue I find is with bigger images, there is no easy way to add a sort of placeholder image or text to tell the user the image is being uploaded.
The current flow is this:
const imageUrl = await doUpload();
editor.chain().focus().setImage({ src: imageUrl }).run()
So between uploading the image and setting the image, there is a delay and no feedback to the user.
So I have tried to extend the Image extension and I am able to create a method to set some text, but then I am not sure how to clear that text. Does anyone have a good solution for this?

Copy/Paste Text From The Tool-tip Of Google Sheets Cell

I want to capture the tooltip text of the URLs that Google sheet shows.
I've this link in the Google sheet:
https://www.vingle.net/
When I hover over this URL, this text is shown:
Create an account or log in - Vingle is an interest-based community platform available via mobile and web, where users can connect with people who love what they love!
Like this:
This is what I want to do:
Copy whatever text is shown in the popup/tooltip of the URL and paste it in the cell next to it. From this:
To this:
FYI, this is actually the meta tag. Most of you might offer IMPORT functions but the I don't want to use import function for some reason. I just want the text that Google sheet is already capturing. Is it possible?
Copy whatever text is shown in the popup/tooltip of the URL and paste it in the cell next to it.
I do not think that can be done in Google Sheets. There are no methods in the Sheets API nor in SpreadsheetApp to capture contents of a pop-up info panel. You would have to retrieve the meta tag through an importdata() formula or a script that uses UrlFetchApp().

Is it possible to export a half image out of the full image

I have saved the image in a varbinary datatype using the openrowset method in the column of my table. And I am able to export that image from the table to my desired location. But I want to export only half image from that image - is that possible?
I have copied the code from the following site
https://www.mssqltips.com/sqlservertip/4963/simple-image-import-and-export-using-tsql-for-sql-server/
I thought if I reduce the varbinary data of the image to the half of its actual data then maybe I can export the half size of the image but I don't know how can I do that.

I want to read and show the excel file on UI using Angular

The excel file should look like this on UI:
I tried github.com/SheetJS/js-xlsx and was able to get the excel data in JSON format, but i need to show the data in grid.
I tried http://brianhann.com/easily-import-spreadsheets-into-ui-grid/ also but I am not getting the grid. I am not sure what is MainCtrl here, i tried using my controller but i shows blank grid.
How can i get the excel data with Table using angular.Is there any library which can read/import excel file.? Or do i need to create table using HTML tags.?
Please suggest a way to achieve this, please help.

PHP Excel reader image/file not found when trying to insert an image into an excel file

I am trying to export an excel sheet/file. Inside the file are product data and I am trying to insert the products' image along with other product data for each product. However everytime I run my export code I get an error which is something like, File http://path_to_file/image.jpg not found!. I am using CakePHP by the way. My code for exporting the excel sheet goes like this:
$objDrawing = new PHPExcel_Worksheet_Drawing();
$objDrawing->setName('Water_Level');
$objDrawing->setDescription('Water_Level');
$objDrawing->setPath(''.PATH_TO_IMAGES.'image.jpg');
$objDrawing->setHeight(20);
$objDrawing->setCoordinates('A1');
$objDrawing->setWorksheet($excel->getActiveSheet());
Is there something wrong with my code? Thanks.
I'm pretty sure the argument for PHPExcel_Worksheet_Drawing::setPath() is ment to be a local filesystem path, not a URL.

Resources