PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 5:23 pm

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: Wed Jul 21, 2010 3:06 pm 
Offline

Joined: Wed Jul 21, 2010 2:44 pm
Posts: 2
Hi,

i have a really strange problem with the MigraDocPrintDocument. I try to print a document as it is show in the samples. My Problem: the class only got the properties „Renderer“ and „SelectedPage“. I use 1.31. I already check other versions like 1.30 (always GDI, and GPW dll). The object catalog also shows not more functions or properties. So this has to be my fooling.
Used Example: http://www.pdfsharp.net/wiki/DocumentViewer-sample.ashx
my little code:

Code:
string dll = MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToString(doc);
            DocumentPreview prew = new DocumentPreview();
            prew.Ddl = dll;

            DocumentRenderer renderer = prew.Renderer;
           
            MigraDocPrintDocument printDocument = new MigraDocPrintDocument();
            printDocument.


Yes and there is the problem. I am missing stuff like printDocument.Print() or printDocument.PrinterSettings.


my second problem:

I have a linechart with view points. Now I want to add a horizontal line representing the average and there around a area with the standard deviation.
There is no function to add something like that.
Do you have a advice for me?


thx


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 21, 2010 4:12 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3110
Location: Cologne, Germany
Hi!
Rie wrote:
Yes and there is the problem. I am missing stuff like printDocument.Print() or printDocument.PrinterSettings.

MigraDocPrintDocument is derived from PrintDocument - Print() and PrinterSettings are inherited.
I'm afraid I don't understand where the problem is - the sample code shown in the Wiki is valid, it compiles, it runs. No problem.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 22, 2010 5:59 am 
Offline

Joined: Wed Jul 21, 2010 2:44 pm
Posts: 2
Oh yeah an there is the problem thx :D Sorry for that, i am new to C# ...

My project is a Libery and its not possible to refer to "using System.Drawing.Printing;".


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 70 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