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.
Unfortunately, activation email could not send to your email. Please try again.

IPDFIMAGE

Thread ID:

Created:

Updated:

Platform:

Replies:

48256 Aug 23,2006 09:45 AM Aug 23,2006 11:02 AM Windows Forms 1
loading
Tags: PDF
Jody Kelsch
Asked On August 23, 2006 09:45 AM

These code gives me an Error.

"Value cannot be null.
Parameter name: obj"

Dim i1 As Image = Image.FromFile("C:\Picture 002.jpg")

''Below Line Creates the Error?
Dim m As IPDFImage = doc.CreatePDFImage(i1)

Dim r As New RectangleF(0, 0, doc.LastPage.DrawingWidth, doc.LastPage.DrawingHeight)
doc.LastPage.Graphics.DrawImage(New Point(0, 0), m, doc.LastPage.Size, props, r)

Jody Kelsch
Replied On August 23, 2006 11:02 AM

I Figured it Out

Dim m As IPDFImage = doc.LastPage.Graphics.CreatePdfImage(i1)

fixed the Problem

>These code gives me an Error.

"Value cannot be null.
Parameter name: obj"

Dim i1 As Image = Image.FromFile("C:\Picture 002.jpg")

''Below Line Creates the Error?
Dim m As IPDFImage = doc.CreatePDFImage(i1)

Dim r As New RectangleF(0, 0, doc.LastPage.DrawingWidth, doc.LastPage.DrawingHeight)
doc.LastPage.Graphics.DrawImage(New Point(0, 0), m, doc.LastPage.Size, props, r)

CONFIRMATION

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.

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.

;