Haroon
Haroon

Reputation: 3472

Xsl fo image from filepath using fo.net

I am trying to load an image into the header for my pdf document which is generated using fo.net.

For some reason I cannot get XSL to pick up the correct filepath, I have verified the image is present, code is:

<fo:static-content flow-name="xsl-region-before">
  <fo:block padding-top="1cm" margin-left="1cm">
    <fo:external-graphic src="url('C:\\Projects\\Reports\\frontbanner960_2.jpg')" />
  </fo:block>
</fo:static-content>

Upvotes: 0

Views: 1182

Answers (1)

mzjn
mzjn

Reputation: 50947

C:\\Projects\\Reports\\frontbanner960_2.jpg is not a proper URL.

Try file:///C:/Projects/Reports/frontbanner960_2.jpg instead.

Upvotes: 2

Related Questions