XEROF

 

xlsgen 3.5 build #3 : OLE objects extraction


Build 3.5.0.3 of xlsgen adds support for OLE objects extraction.

In a nutshell, OLE objects are arbitrary files stored inside spreadsheets (PDF, Word document, ...)

Unless clicked, they behave like pictures. When double-clicked they activate (the underlying OLE server starts) and you can manipulate them, including saving back to the file.

xlsgen supports the extraction of OLE objects from spreadsheets. Both the embedded objects (for instance a Word document as a file) as well as pictures (which is the last visual state of the document) can be extracted.

Here is a piece of code (C#) showing how the collection of OLE objects is exposed and how to extract what's in them.

IXlsWorkbook wbk = engine.Open( "Book1_ole_linking.xlsx", "");

int nbOleObjects = wbk.get_WorksheetByIndex(1).OLEObjects.Count;

// grab the first OLE object in the collection
// it is assumed there is one such OLE object in the spreadsheet
IXlsOLEObject object = wbk.get_WorksheetByIndex(1).OLEObjects.get_Item(1);

// location
int left = object.LeftColumn;
int right = object.RightColumn;
int top = object.TopCell;
int bottom = object.BottomCell;

// embedded object file type, for instance "doc" for a Word document
string sFileExtension = object.Filetype;

// embedded object extraction
object.ExtractToFile("output\\embedded.doc");

// picture file type, for instance "emf" for a Windows enhanced metafile picture
string sPictureFileExtension = object.SnapshotFiletype;

// picture file extraction
object.ExtractSnapshotToFile("output\\embedded.emf");

Posted on 15-November-2013 17:11 | Category: xlsgen, Excel generator | comment[0] | trackback[0]

 

 

<-- previous page

< December >
0102030405
0607080910
1112131415
1617181920
2122232425
2627282930
31



 

 

This site
Home
Articles

DevTools
CPU-Z
EditPlus
ExplorerXP
Kill.exe
OllyDbg
DependencyWalker
Process Explorer
autoruns.exe
Araxis
COM Trace injection
CodeStats
NetBrute
FileMon/Regmon
BoundsChecker
AQTime profiler
Source monitor
GDI leaks tracking
Rootkit revealer
Rootkit removal
RunAsLimitedUser(1)
RunAsLimitedUser(2)

 

 

Liens
Le Plan B
Un jour à Paris
Meneame
Rezo.net (aggr)
Reseau voltaire
Cuba solidarity project
Le grand soir
L'autre journal
Le courrier suisse
L'Orient, le jour
Agoravox (aggr)