PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 8:28 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: 12
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: 3095
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: 12
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: 12
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: No registered users and 139 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