Print Page | Close Window

ISEDQuickPdf wth RealBasic

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=370
Printed Date: 19 May 24 at 8:38AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: ISEDQuickPdf wth RealBasic
Posted By: xbww
Subject: ISEDQuickPdf wth RealBasic
Date Posted: 16 Mar 06 at 3:21PM

Anybody got an idea of how to use ISEDQuickPdf library with 2005/2006 versions of RealBasic? I've tried to add the ActiveX to the project with the Project/Add command but it does not show up? It has been registered.

Maybe it can be instantiated with code without having to be "added" to the project?   I know that MBS has a pluging that works with it but I am wondering why I can't use it directly.




Replies:
Posted By: chicks
Date Posted: 16 Mar 06 at 3:47PM
I don't know RealBasic, but iSEDQuickPDF doesn't have any sort of visual interface, it's a COM component.

Whatever mechanism RB uses to instantiate a COM object should work...

There's also the DLL version, if RB supports DLL's.


Posted By: xbww
Date Posted: 18 Mar 06 at 5:20PM

I figured it out. You have to use declares. Seems to work great. Just put the dll in the same folder as the application you compile.

  Declare Function iSEDUnlockKey Lib "iSEDQuickPDf.dll" ( sRegKey As CString ) As Integer
  Declare Function iSEDDrawText Lib "iSEDQuickPDF.dll" (dXPos As Double,dYPos As Double, sText As CString) As Integer
  Declare Function iSEDSaveToFile Lib "iSEDQuickPDF.dll" (sFileName As CString) As Integer
   
  Dim a as integer
 
  a=iSEDUnlockKey("*****")
  a=iSEDDrawText(100, 500, "Hello World!")
  a=iSEDSaveToFile("c:\test.pdf")



Posted By: chicks
Date Posted: 18 Mar 06 at 9:16PM
OK, so you are using the DLL version. The download from the iSEDQuickPDF site includes a .inc file for PowerBASIC that has all the declares. You will probably need to change a few of them for RB, but most should be correct.



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