PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 09, 2020 10:03 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Header Logo
PostPosted: Wed Mar 04, 2020 10:24 am 
Offline

Joined: Wed Mar 04, 2020 10:18 am
Posts: 11
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Header Logo
PostPosted: Wed Mar 04, 2020 1:10 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3045
Location: Cologne, Germany
See this article:
http://www.pdfsharp.net/wiki/MigraDoc_F ... mages.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Header Logo
PostPosted: Wed Mar 04, 2020 5:04 pm 
Offline

Joined: Wed Mar 04, 2020 10:18 am
Posts: 11
how do i get the right path here?


Top
 Profile  
Reply with quote  
 Post subject: Re: Header Logo
PostPosted: Wed Mar 04, 2020 5:14 pm 
Offline

Joined: Wed Mar 04, 2020 10:18 am
Posts: 11
found the error.
it must be an embedded resource


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group