PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 6:24 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Nov 09, 2009 3:24 am 
Offline

Joined: Thu Oct 01, 2009 7:23 am
Posts: 7
Hi,
I am using pdfsharp generating reports, it works very well. You guys have done a very good job.
However, I am wondering is there any method to be used to load image from URL adress instead of load from local path with
Code:
XImage.FromFile(string path)

Because although I disposed the XIMage object, the page, and the document related to that image, it works fine on local test machine, but when I upload it to the IIS server, it does not work quite well, sometimes the process still locks the image file even if I have already released the resources, and I intend to download the image from a url and delete the image after generating pdf.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 09, 2009 9:28 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!

It's a known bug that images remain locked if the WPF build is used:
viewtopic.php?p=1937#p1937

You can try TempFileCollection and leave deleting to .NET.
Or use the GDI+ build.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 10, 2009 12:28 am 
Offline

Joined: Thu Oct 01, 2009 7:23 am
Posts: 7
Ok, thank you for your help, I will try to figure it out


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 396 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