http://apache-poi.1045710.n5.nabble.com/file/n5709834/excel-example-included.xlsx
excel-example-included.xlsx 
http://apache-poi.1045710.n5.nabble.com/file/n5709834/excel-example-link.xlsx
excel-example-link.xlsx 

Hey Mark, thank You very much for the reply!

In attachment you will see two emample excel sheets.

*excel-example-link.xlsx* is the file where image is loaded from remote web
site
*excel-example-included.xlsx* is the file where image is included in XLSX
archive

Interesing part is drawing1.xml.rels file. In first case, XML looks like
this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships";>
<Relationship Id="rId1"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
Target="http://milos.malovic.net/slika.jpg"; TargetMode="External"/>
</Relationships>

In second case it looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships";>
<Relationship Id="rId1"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
Target="../media/image1.jpeg"/>
</Relationships>

As you can see, no big difference between these two XMLs. The reasony why I
want to avoid manual creating of XML with some XML library are Ids (in case
of mulitple images) and properties in drawing.xml file.

Can you give me URL with documentation and examples for OpenXML4j? Is it
possible to access OpenXML layer from upper layers or only with changing
source code of library?

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Load-remote-image-inside-excel-sheet-tp5709821p5709834.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to