If someone has any idea that how to print the xml file.
FaridMasood
-2
Junior Poster in Training
Recommended Answers
Jump to Postdear Farid,
Read XML data into a dataset then use the next link which is used to print a dataset.
Jump to PostA simple way to print an XM data onto the Console window is by using an object of
XmlDocument
.here is a sample code snippet:
XmlDocument doc = new XmlDocument(); doc.LoadXML(("<clientinfo><servicetype>korea</servicetype><servertype>sakray</servertype></clientinfo>")); doc.Save(Console.Out);
This is one way to do it. Another way is pass an …
Jump to Postdear Farid,
check the next code:
// add the next refernce to your project System.Drawing. using System; using System.IO; using System.Collections.Generic; using System.Drawing; using System.Drawing.Printing; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { string FilePath = "File.XML"; StreamReader sr = new StreamReader(FilePath); string text …
All 11 Replies
AmirBedair
0
Light Poster
ChaseVoid
30
Junior Poster
FaridMasood
-2
Junior Poster in Training
FaridMasood
-2
Junior Poster in Training
AmirBedair
0
Light Poster
ChaseVoid
30
Junior Poster
FaridMasood
-2
Junior Poster in Training
ChaseVoid
30
Junior Poster
FaridMasood
-2
Junior Poster in Training
AmirBedair
0
Light Poster
dhairy1
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.