Print Page | Close Window

VB.NET place image on 2nd page

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=442
Printed Date: 19 May 24 at 3:10AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: VB.NET place image on 2nd page
Posted By: Jay2068
Subject: VB.NET place image on 2nd page
Date Posted: 14 Jun 06 at 11:56PM

I'm new to using QuickPDF and have tried to accomplish my task. But I can't seem to see how I choose what page the image should be placed on. Here is the code that I am using. It works fine for placing my image (A signature) on the first page.

Dim QP As iSED.QuickPDF
QP = CreateObject(
"iSED.QuickPDF")
Call QP.UnlockKey("blah..blah..blah..")
Dim DocLoadFileName As String = advDocFilename
Call QP.LoadFromFile(DestinationDir & destfile)
Call QP.AddImageFromFile(sigDir & sigName, 0)
Call QP.DrawImage(sigXPos, sigYPos, sigWidth, sigHeight)
Call QP.SaveToFile("c:\testpic.pdf")

I'm using VB.NET 2005.

 

Any help is appreciated. Thanks!




Replies:
Posted By: tren
Date Posted: 15 Jun 06 at 1:15AM
I think you may be looking for QP.SelectPage() before drawing your image.


Posted By: Jay2068
Date Posted: 15 Jun 06 at 9:20AM

Yep that was it. and that was easy!

 

Thanks for the help!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk