Print Page | Close Window

TCP edition

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=1524
Printed Date: 28 Jan 26 at 5:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: TCP edition
Posted By: softwaredev
Subject: TCP edition
Date Posted: 01 Aug 10 at 6:31PM
 
Found this in the samples.
 

Using the C# class

A C# client is available in the [installation folder]\TCP\Client\CSharp directory.

Here is an example program:

QuickPDFTCP0719.Client qp = new QuickPDFTCP0719.Client();
if (qp.Connect("127.0.0.1", 10005))
{
    if (qp.UnlockKey("your license key here") == 1)
    {
        qp.DrawText(100, 500, "Hello from C# via TCP/IP");
        qp.SaveToFile("C:\\test.pdf");
    }
}
Note that all directories are relative to the server.
 
Question: C# project how do I add a reference to the QuickPDFTCP0719 ? Like is it the same exe that was used to install the service?
 
 
 



Replies:
Posted By: softwaredev
Date Posted: 01 Aug 10 at 6:45PM
 
Ok, think I figured it out myself. It is a Csharp class in itself. Since my project was VB.NET I first created a separate CSharp class (library DLL) and then compiled it. Added that CSharp project as a reference to the VB.NEt class and now able to see all the implementations.
 
Now next step to try it out and see if it creates the PDf correctly as desired.



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