PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jul 31, 2014 5:04 pm 
Offline

Joined: Thu Jul 31, 2014 4:54 pm
Posts: 1
Hi,

I have some existing code that displays a report using System.Windows.Forms.PrintPreviewDialog. Users are used to seeing the report in that dialog. I plan to store old versions of these reports in PDF format and I really would like to show them in the same PrintPreviewDialog.

I found there is a MigraDocPrintDocument, but everything I've tried doesn't work. I guess the problem is being able to load an existing PDF file into a Migra Document object? And I saw an older forum post on here that suggested it couldn't print images that are in documents.

Also the forum posts suggested an external tool would have to be used to print PDFs OR a user could export to images and then print those. Before I even knew about MigraDocPrintDocument, I was trying to print a PdfDocument to images and then print them through a custom PrintDocument implementation, but I couldn't really figure out how.

Can someone give me some guidance?


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 04, 2014 8:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
MigraDoc does not render PDF files (neither does PDFsharp).
There is no way to get MigraDoc to display PDF files.

You can embed Adobe Reader to display PDF files.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

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