PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Wed Oct 29, 2025 3:47 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 Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 29, 2014 4:20 pm 
Offline

Joined: Wed Jan 29, 2014 4:14 pm
Posts: 2
Hello guys,

I'm trying to show a MigraDoc document on the MainWindow.xaml. I'm using Visual Studio 2010, C#, Framework .NET 4.0. Anyone knows how to do it? I read the DocumentViewer Sample but i don't understand yet how to show the document on the MainWindow Screen. I just tried a lot of stuff.

Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 31, 2014 12:20 pm 
Offline

Joined: Wed Jan 29, 2014 4:14 pm
Posts: 2
Anyone?


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 03, 2014 4:11 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
Add a
Code:
<md:DocumentPreview x:Name="preview"/>
to your main window.

In your code assign the document (in MDDDL format) to the DDL property of "preview" (name used with "x:Name" in the code snippet above):
Code:
preview.Ddl = ...


It's all in the sample.

With more specific questions you will get more specific answers.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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: Google [Bot] and 101 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