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

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

3. User Form dialog is displayed.

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. |

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

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

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

| 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. |

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

| 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();
}

|