Print Page | Close Window

Setting up Web Dev 2012 Express

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=2428
Printed Date: 17 Jan 26 at 12:39AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Setting up Web Dev 2012 Express
Posted By: RLT
Subject: Setting up Web Dev 2012 Express
Date Posted: 06 Oct 12 at 7:35PM

I’ve been using QuickPDF within Delphi for a few years.   Now trying to use it in our web site.  My problem is accessing the libraries in my development tools.  As an aside, adding libraries always seem to be my biggest problem as they seen to install in so many different ways.

 

Using Microsoft Web Developer 2010 express.

Using QuickPDF 8.16

Incorporating into a web site using .Net 4.0 in  C#

Machine is running  32-bit Window 2003 Server.

 

What I did...  (which doesn’t work) is similar to the way I added MS Word:

·         Used regsvr32 to install the QuickPDFAX0816.dlll

·         Within Web developer Express:

·         Select : “Add Reference…”  to my project

·         Select the COM Tab

·         Select: Quick PDF Library 8.16

·         Get the error:   “A reference to ‘Quick PDF Library 8.16’ could not be added. Converting the type library to a .NET assembly failed.  No process is associated with this object.”

 

What am I doing wrong?

 

Perhaps I don’t need to do any setup at all and just need to use the correct “Using” statement.   Which  brings up the last question which is:

       “What is the ‘Using’  statement is should use?”

 

 




Replies:
Posted By: RLT
Date Posted: 06 Oct 12 at 9:08PM
Correction on the Subject.  It is Web Developer 2010 Express as is mentioned in the body.   My apologies.


Posted By: AndrewC
Date Posted: 07 Oct 12 at 1:12AM
QuickPDFAX0816.dll is not a .NET based DLL/ActiveX but is a pure Windows DLL (Win32).  

I don't have Web Developer 2010 Express experience but since it is .NET based then it should be a similar process to that of adding the ActiveX to a C# project.

The QuickPDFAX0816.cs file loads and initialises the DLL for you in theory all you need to do is add the QuickPDFAX0816.cs file to your project as an existing item.

using QuickPDFAX0816;   // The Using statement.
..
..
        private void button1_Click(object sender, EventArgs e)
        {
            PDFLibrary QP = new PDFLibrary();
            int ret = QP.LoadFromFile("pages.pdf", "");
            QP.SaveToFile("out.pdf");
...




Posted By: RLT
Date Posted: 07 Oct 12 at 3:12PM
Thanks!  That's what I needed.   I wondered what that file was for.   It's obvious after you know it!
 
In addition,  the file needs to be in the App_Code folder of the web project.
 
MANY THANKS.



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