it state: Object reference not set to an instance of an object.
YiXiang_89
Posts
-
Question about Session -
Question about SessionHi all, txt_name.Text = (string)Session["Product_Name"]; if is a integer. . . . How do i type it? txt_number.Text = Thank You
-
how do i delete a xml file ?Hi all How do i delete a temporary html file if i store a xml file in C:\temp using C# or my xml file is: testing.xml How do i delete it ? Thank You
-
How do i delete a fileHi all How do i delete a temporary html file if i store a html file in C:\temp or my html file is: testing.html How do i delete it ? Thank You
-
how do i read the specific tag ?hi all This is to read the tag line by line. using System.Xml; ... ... ... XmlTextReader reader = new XmlTextReader ("reader.xml"); while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. Console.Write("<" + reader.Name); Console.WriteLine(">"); break; case XmlNodeType.Text: //Display the text in each element. Console.WriteLine (reader.Value); break; case XmlNodeType.EndElement: //Display the end of the element. Console.Write("</" + reader.Name); Console.WriteLine(">"); break; } } Console.ReadLine(); How do i read the specific tag if i just want to read all the tag that have this < big > tag? thank you
-
how to read the specific tag [modified]hi all This is to read the tag line by line. using System.Xml; ... ... ... XmlTextReader reader = new XmlTextReader ("reader.xml"); while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. Console.Write("<" + reader.Name); Console.WriteLine(">"); break; case XmlNodeType.Text: //Display the text in each element. Console.WriteLine (reader.Value); break; case XmlNodeType.EndElement: //Display the end of the element. Console.Write("</" + reader.Name); Console.WriteLine(">"); break; } } Console.ReadLine(); How do i read the specific tag if i just want to read all the tag that have this < big > tag? thank you
modified on Monday, April 13, 2009 3:36 AM
-
Question about HTML tag C#Hi all, How do i able to Read the html tag And after that, i can chage the html tag content? How do i read all the tag that contain with
How are you?
How can i replace the "How are you? to other type of text ? like "GFHSDFGR" (junk word)? Thank You
-
Read all occurances of a specific tag out of an HTML fileU say Easy way is to read each character and check it is the expected one. If yes, start reading from there. Other way is to read the whole file and use regular expression to find
So what is the coding to check if it is the expected one? Thank You
-
Read all occurances of a specific tag out of an HTML fileHow to type out the code? =X Thank You
-
Read all occurances of a specific tag out of an HTML fileHi all How to use streamreader class to read all occurances of a specific tag out of an HTML file Example i want to read this tag << p >> onwards
This is some text in a paragraph.
How do i able to capture p ? Thank You
-
Where can i download iTextSharp.dll (version 4.0.6.0)i tried................................ but cant find tried google, msn,yahoo.... cause i am using iTextSharp.dll (version 4.1.2.0) i want to down grade it X|
-
where can i download iTextSharp.dllhi all, Anyone know where can i download iTextSharp.dll (version 4.0.6.0) ?? Thank You
-
where can i download iTextSharp.dll (version 4.0.6.0hi all, Anyone know where can i download iTextSharp.dll (version 4.0.6.0) ?? Thank You
-
Where can i download iTextSharp.dll (version 4.0.6.0)hi all, Anyone know where can i download iTextSharp.dll (version 4.0.6.0) ?? Thank You
-
need helpHi all, How to call the anchor? I am using ItextSharp.dll My textbox is: webpageurl i want my textpage able to capture this website after i click the button <<OK>> What can i put for >> Using._______._____; to call the anchor ? How to continue from here? Anchor anchor = new Anchor("website"); anchor.setReference("http://www.lowagie.com/iText/"); anchor.setName("website"); Anchor anchor1 = new Anchor("This is an internal link"); anchor1.setName("link1"); Anchor anchor2 = new Anchor("Go to the internal link"); anchor.setReference("#link1"); ThankYou
-
How to convert html to pdf using C# tried to do but got errorHi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You
-
need help on C# ITEXTsorry... posted on wrong forum
-
need help on C# ITEXT - Convert html to pdfhi all, This is what i found on the web public static PdfFileSpecification fileEmbedded(PdfWriter writer,String filePath,String fileDisplay, byte[] fileStore,int compressionLevel) { Parameters: writer - the PdfWriter filePath - the file path fileDisplay - the file information that is presented to the user fileStore - the byte array with the file. If it is not null compressionLevel - the compression level to be used for compressing the file it takes precedence over filePath } <---- what to type inside? So this help to transfer the html that have been converted to pdf to store inside a file ? does anyone know how to convert html to pdf using C#? Cause the web i find are about java Thank you
-
need help on C# ITEXTwhere to find? Cause the web i find are about java coding, which i do not know at all lol C# coding are limited... not really know where to find.
-
need help on C# ITEXThow come? need help on how to convert using C# html - pdf