We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Insert image from clipboard.

Thread ID:





79323 Feb 1,2009 09:55 PM UTC Feb 2,2009 07:23 AM UTC WinForms 1
Tags: PDF
Marty Graham
Asked On February 1, 2009 09:55 PM UTC

How do I insert an image(emf) from the clipboard into the pdf document. Using Syncfusion.PDF.Windows.Net.4.402.0.51, Visual Studio 2005, VB.Net. I can do this programatically with MS Word easily with outstsnding results. The reason for purchasing your control was to eliminate the use of MS Word. Feel like I have to walk on my lips get these controls to perform what should be simple tasks.

Bhuvaneswari P [Syncfusion]
Replied On February 2, 2009 07:23 AM UTC

Hi Martin,

Thank you for your interest in Syncfusion products.

DocIO doesn't have any API to work with clipboard. But we can work around this by using .Net library by converting the Clipboard object to image object and then insert the image into the word document. Please find the below code snippet to do so:

WordDocument doc = new WordDocument();
if (Clipboard.GetDataObject().GetDataPresent(typeof(Metafile)))
image = (Image)Clipboard.GetDataObject().GetData(typeof(Metafile));
else if (Clipboard.GetDataObject().GetDataPresent(typeof(Bitmap)))
image = (Image)Clipboard.GetDataObject().GetData(typeof(Bitmap));


Please try this and let us know if this helps you.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon