PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
PDF Sharp Page Handle http://forum.pdfsharp.de/viewtopic.php?f=2&t=1330 |
Page 1 of 1 |
Author: | Ramashankar [ Fri Sep 10, 2010 6:41 am ] |
Post subject: | PDF Sharp Page Handle |
Hi , How to get the handle of the page. i want to pass the handle of the page to my method that will render the content on the object associated with handle. |
Author: | Thomas Hoevel [ Mon Sep 13, 2010 8:45 am ] |
Post subject: | Re: PDF Sharp Page Handle |
Ramashankar wrote: i want to pass the handle of the page to my method Pass the PdfPage object to your method. Maybe I don't understand the question correctly. |
Author: | Ramashankar [ Mon Sep 13, 2010 10:33 am ] |
Post subject: | Re: PDF Sharp Page Handle |
Ramashankar wrote: i want to pass the handle of the page to my method Pass the PdfPage object to your method. Maybe I don't understand the question correctly. _________________ Regards Thomas Hoevel PDFsharp Team Hi Thomas, Thank you very much for your reply. Let me explain my question again- I have controls library written in vb6.0. Every control has their Draw Method, which is used to render the object on the surface (screen / Printer). Basically that method can accept the any object as a surface, provided it will have HWND (pointer) Property. For ex: - VB Printer, Picture Box, etc. I want to pass HWND (pointer) of PdSharp objects, but I am unable to find the HWND property or any method similar to that. As like we have for other objects- Graphics graphicsDisplay = CreateGraphics(); IntPtr hdc = graphicsDisplay.GetHdc(); Form _frmSurface = _PrintObjectContainger; IntPtr handle = _frmSurface.Handle; I want something like IntPtr handle = PDFPage.Handle [/color] Or IntPtr handle = _paragraph.HWND Thanks. |
Author: | Thomas Hoevel [ Mon Sep 13, 2010 11:40 am ] |
Post subject: | Re: PDF Sharp Page Handle |
A PdfPage is a PDF page and not a window. There is no HWND. You can try to have your controls draw on a memory bitmap and then draw that bitmap on the PDF page. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |