PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Header Logo
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4105
Page 1 of 1

Author:  apa13179 [ Wed Mar 04, 2020 10:24 am ]
Post subject:  Header Logo

I would like to use the resources in the project to provide my logo not via the file path.

Image image = section.Headers.Primary.AddImage("Logo.png");
Properties.Resources.Logo

How is that possible?

Author:  Thomas Hoevel [ Wed Mar 04, 2020 1:10 pm ]
Post subject:  Re: Header Logo

See this article:
http://www.pdfsharp.net/wiki/MigraDoc_F ... mages.ashx

Author:  apa13179 [ Wed Mar 04, 2020 5:04 pm ]
Post subject:  Re: Header Logo

how do i get the right path here?

Author:  apa13179 [ Wed Mar 04, 2020 5:14 pm ]
Post subject:  Re: Header Logo

found the error.
it must be an embedded resource

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/