|
Microsoft Visual Studio .NET |
Top Previous Next |
|
Steps for Microsoft Visual Studio .NET
Visual Basic
Visual C#
3. As per the selection of the application, the User Form dialog is displayed.
Visual Basic
Visual C#
5. To insert PDFtoolkit ActiveX control(s), there are two ways:
Depending on the package purchased you will see one or more of the controls displayed. For more information see Editions Of PDFtoolkit ActiveX.
If you need to utilize the .NET Interop DLLs select the .NET Framework Components tab. Browse to the folder where the DLLs are located and select it (PDFtoolkitNET.dll). Click on the Open button.
Note: Depending on the package purchased you will see one or more of the controls displayed. For more information see Editions Of PDFtoolkit ActiveX.
Visual Basic
Visual C#
Visual Basic
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With AxgtPDFDocumentX1 .LoadFromFile("Sample.pdf") .SaveToFile("Output.pdf") End With End Sub
Visual C#
private void button1_Click(object sender, System.EventArgs e) { axgtPDFDocumentX1.LoadFromFile("Sample.pdf"); axgtPDFDocumentX1.SaveToFile("Output.pdf"); }
OR
c) You can start writing code. The following sample code will load a PDF document and make a copy of it.
Visual Basic
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button1.Click Dim AxgtPDFDocumentX1 As New gtPDFDocumentXClass() AxgtPDFDocumentX1.LoadFromFile("Sample.pdf") AxgtPDFDocumentX1.SaveToFile("Output.pdf") End Sub
Visual C#
private void button1_Click(object sender, System.EventArgs e) { gtPDFDocumentX axgtPDFDocumentX1 = new gtPDFDocumentXClass(); axgtPDFDocumentX1.LoadFromFile("Sample.pdf"); axgtPDFDocumentX1.SaveToFile("Output.pdf"); }
|