Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

"Too Many Arguments To 'Public Overloads Sub New()" Error

$
0
0
Hello, I am just starting out in VB and I was wondering if I could get some help.  I don't understand what this error means "Too Many Arguments to 'Public Overloads Sub New()'.  Here is my code, I am trying to convert input from a textbox into a pdf file as text.  Please help me out.
Imports iTextSharp.text.pdf
Imports iTextSharp.text
Imports System.IO

Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim pdfDoc As New Document()
        Dim pdfWrite As PdfWriter = PdfWriter.GetInstance(pdfDoc, New FileStream("Simple.pdf", FileMode.Create))
        Dim teamNameText As TextBox = New TextBox()

        pdfDoc.Open()
        pdfDoc.Add(New TextBox(teamNameText))
        pdfDoc.Close()
    End Sub
End Class



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>