Cita:
Iniciado por RootK
y cuales son esos errores?
private void button3_Click(object sender, EventArgs e)
{
Console.WriteLine("Chapter 7 example 7: parsing the HTML from example 2");
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
try
{
// step 2:
// we create a writer that listens to the document
// and directs a XML-stream to a file
PdfWriter.GetInstance(document, new FileStream("Chap0707.pdf", FileMode.Create));
// // step 3: we create a parser and set the document handler
// Parser parser = ParserFactory.makeParser(PARSER);
// parser.setDocumentHandler(new SAXmyHtmlHandler(document));
// step 3: we create a parser
// ITextHandler h = new ITextHandler(document);
HtmlParser.Parse(document, "Chap0702.htm");
// step 4: we parse the document _Document;
// h.Parse("Chap0702.htm");
// step 4: we parse the document
// parser.parse("Chap0702.html");
}
catch (Exception e)
{
Console.Error.WriteLine(e.Message);
Console.Error.WriteLine(e.StackTrace);
}
}
este es el codigo del boton ke deberia traspasar de html a pdf y me arroja los siguientes errores
Error 1 A local variable named 'e' cannot be declared in this scope because it would give a different meaning to 'e', which is already used in a 'parent or current' scope to denote something else C:\Documents and Settings\Administrador\Mis documentos\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplicati on3\Form1.cs 187 13 WindowsApplication3
Error 2 No overload for 'button3_Click' matches delegate 'System.EventHandler' C:\Documents and Settings\Administrador\Mis documentos\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplicati on3\Form1.Designer.cs 65 35 WindowsApplication3
alguien ke cache ayudeme porfis :)