www.gnostice.com 

Borland C#Builder .NET

Top  Previous  Next

Steps for Borland C#Builder .NET

 

 

 

1.Start Borland C#Builder and on File menu, choose New, then choose C# Application.

 

BorlandCBuilder_Figure 1 - New

 
2.Enter the project Name, select the Location and click OK.

 

BorlandCBuilder_Figure 2 - New Application

 

3.        User Form dialog is displayed.

 

BorlandCBuilder_Figure 3 - User Form for Boroland

 

 

3.        To insert eDocEgnine ActiveX controls, there are two ways:

 

 

 

i) To insert controls through the menu:

 

a)Select Installed.Net Components from Component menu to install Gnostice eDocEngine ActiveX.

 

BorlandCBuilder_Figure 4 - Install components

 
 
b)Select Installed ActiveX Components tab from the options. Select "Gnostice eDocEngine" controls from the list and click OK.

 

BorlandCBuilder_Figure 5 - Installed ActiveXComponents

 
c)The selected Gnostice eDocEngine controls will appear on the Tool Palette.

 

BorlandCBuilder_Figure 6 - Tool Palette

 
 
d)Drop the control on the user form; you can start writing code.

 

BorlandCBuilder_Figure 7 - PDF on User Form

 
 
e)The following sample code will create Hello World in the document when ".ocx" file is used:

 

private void button1_Click(object sender, System.EventArgs e)

{

axgtPDFEngineX1.FileName = "Sample";

axgtPDFEngineX1.ActivateLicense("Enter The Licensekey String Here");

axgtPDFEngineX1.BeginDoc();

axgtPDFEngineX1.TextOutXY(1,1,"Hello World");

axgtPDFEngineX1.EndDoc();

}

OR

 

 

ii) To insert controls through Code:

 

a)To add Gnostice eDocEngine controls through code secondary click (right click) the Project Manager. Select Add Reference from options.

 

BorlandCBuilder_Figure 11 - Add Reference

 
 
b)Select .NET Assemblies tab from Add Reference dialog. Browse and select the .dll from <eDocEngine InstallDir>\Bin\.Net\eDocEngineX.dll.

 

BorlandCBuilder_Figure 12 - After Add Reference

 

 

 

c)You can start writing code. The following sample code will create Hello World in the document when ".dll" file is used:

 

private void button1_Click(object sender, System.EventArgs e)

{        

gtPDFEngineX axgtPDFEngineX1;

axgtPDFEngineX1 = new gtPDFEngineXClass();

axgtPDFEngineX1.FileName = "Sample";

axgtPDFEngineX1.ActivateLicense("Enter The Licensekey String Here")

axgtPDFEngineX1.BeginDoc();

axgtPDFEngineX1.TextOutXY(1,1,"Hello World");

axgtPDFEngineX1.EndDoc();

}

 

 

 

top of the page hyperlink