PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
MigraDocPrintDocument and MigraDoc Chart Problem http://forum.pdfsharp.com/viewtopic.php?f=2&t=1272 |
Page 1 of 1 |
Author: | Rie [ Wed Jul 21, 2010 3:06 pm ] |
Post subject: | MigraDocPrintDocument and MigraDoc Chart Problem |
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 |
Author: | Thomas Hoevel [ Wed Jul 21, 2010 4:12 pm ] |
Post subject: | Re: MigraDocPrintDocument and MigraDoc Chart Problem |
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. |
Author: | Rie [ Thu Jul 22, 2010 5:59 am ] |
Post subject: | Re: MigraDocPrintDocument and MigraDoc Chart Problem |
Oh yeah an there is the problem thx Sorry for that, i am new to C# ... My project is a Libery and its not possible to refer to "using System.Drawing.Printing;". |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |