Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have an excel file and one cell of every row contain embed pdf file object and remaining cells contain string values.

How to check if cell contain embed object then save that object file into folder and also save the file path and remaining values in database using asp.net with c#.

Any ideas will helpful.

Thanks,

Ajay.

What I have tried:

I have tried with Workbook and Worksheet classes and OLEObject
Posted
Updated 9-Jun-22 15:13pm
v2
Comments
matblue25 9-Jun-22 12:48pm    
Are these embedded OLEObjects or are they hyperlinks to files stored elsewhere? An OLEObject can't be considered as "in" a particular cell since they are like embedded images, they can be moved and resized to overlap multiple cells. The have a "TopLeftCell" property (as an Excel object) that is the cell where that top left corner of the object lies in. But it's not part of that cell, per se.

You might want to look at:
OLEObjects
ajay.raju531 9-Jun-22 14:23pm    
hi, those are embedded OLEObjects.

1 solution

See my earlier comment and check the link below for how to access OLEObjects in Excel from C#.
OLEObjects
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900