PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Sun Nov 02, 2025 10:30 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Fri Jan 31, 2014 11:42 pm 
Offline

Joined: Fri Jan 31, 2014 10:47 pm
Posts: 8
Code:
   filepath = Path.Combine(
               Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                "MigraDoc.mdddl");
                MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToFile(document, filepath);
                              PdfDocumentRenderer renderer = new PdfDocumentRenderer(true, PdfSharp.Pdf.PdfFontEmbedding.Always);
                renderer.Document = document;
                renderer.RenderDocument();
                filepath = Path.Combine(filerepo.GetFolderPath(foldername), filename);
                renderer.PdfDocument.Save((filepath));
                Process.Start((filepath));


Hi please see attached image for detail error message
I had deployed my website on windows azure website.


Attachments:
accesspdf.png
accesspdf.png [ 60.82 KiB | Viewed 7208 times ]
Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 10:31 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
Looks as if the Desktop is not accessible. Store the files in a different location.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
 
PostPosted: Tue Feb 04, 2014 7:16 pm 
Offline

Joined: Fri Jan 31, 2014 10:47 pm
Posts: 8
Hi Thomas,

I changed location to Azure server "site/wwwroot/content/filerepo/file.pdf"

Still am getting an error, please see an image.


Attachments:
accessdennieerrorforpdf1.png
accessdennieerrorforpdf1.png [ 36.88 KiB | Viewed 7196 times ]
Top
 Profile  
 
PostPosted: Wed Feb 05, 2014 9:03 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
Duplicate post:
viewtopic.php?p=7860#p7860

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] and 195 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