Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to print directly crystal report other than Crystalreportviewer? Pin
Paramu197317-Jan-10 3:08
Paramu197317-Jan-10 3:08 
AnswerRe: How to print directly crystal report other than Crystalreportviewer? Pin
Mycroft Holmes17-Jan-10 14:40
professionalMycroft Holmes17-Jan-10 14:40 
AnswerRe: How to print directly crystal report other than Crystalreportviewer? Pin
Steven J Jowett18-Jan-10 8:02
Steven J Jowett18-Jan-10 8:02 
QuestionNeutralize click event on Tab Pin
tannghia16-Jan-10 23:28
tannghia16-Jan-10 23:28 
AnswerRe: Neutralize click event on Tab Pin
dan!sh 16-Jan-10 23:58
professional dan!sh 16-Jan-10 23:58 
GeneralRe: Neutralize click event on Tab Pin
Paul Hasler19-Jan-10 3:15
Paul Hasler19-Jan-10 3:15 
QuestionXML Interaction Pin
The ANZAC16-Jan-10 19:03
The ANZAC16-Jan-10 19:03 
AnswerRe: XML Interaction Pin
Estys17-Jan-10 1:30
Estys17-Jan-10 1:30 
Imports System
Imports System.IO
Imports System.Net
Imports System.Xml

Module Module1
    Sub Main()
        'Address of URL, just a random user
        Dim URL As String = "http://harumacchi.tumblr.com/api/read"
        ' Get data
        Dim client As WebClient = New WebClient()
        
        ' Read an print to console
        Dim reader As StreamReader = New StreamReader(client.OpenRead(URL))
        Dim str As String = ""

        Do While reader.EndOfStream = False
            str = reader.ReadLine()
            Console.WriteLine(str)
            Console.ReadKey()
        Loop

        ' load as document
        Dim xmldoc As XmlDocument = New XmlDocument()
        xmldoc.Load(client.OpenRead(URL))

        For Each node As XmlNode In xmldoc.ChildNodes

            Console.WriteLine(node.Name)
            Console.ReadKey()
        Next

        ' read as xml
        Dim xmlreader As XmlTextReader = New XmlTextReader(client.OpenRead(URL))

        Do While xmlreader.Read()

            If xmlreader.NodeType = XmlNodeType.Element Then
                Console.WriteLine(xmlreader.LocalName)
                Console.ReadKey()
            End If
        Loop


    End Sub
End Module


I personally prefer XmlDocument but you could also use XmlTextReader.
GeneralRe: XML Interaction Pin
The ANZAC17-Jan-10 13:50
The ANZAC17-Jan-10 13:50 
GeneralRe: XML Interaction Pin
Estys17-Jan-10 22:40
Estys17-Jan-10 22:40 
GeneralRe: XML Interaction Pin
The ANZAC18-Jan-10 1:14
The ANZAC18-Jan-10 1:14 
GeneralRe: XML Interaction Pin
Estys18-Jan-10 2:37
Estys18-Jan-10 2:37 
QuestionVB/Batch Scripting Pin
AndieDu16-Jan-10 17:01
AndieDu16-Jan-10 17:01 
AnswerRe: VB/Batch Scripting Pin
Garth J Lancaster16-Jan-10 17:57
professionalGarth J Lancaster16-Jan-10 17:57 
Questioncombo box in datagrid in vb6 Pin
sohil masani15-Jan-10 23:53
sohil masani15-Jan-10 23:53 
AnswerRe: combo box in datagrid in vb6 Pin
Eddy Vluggen16-Jan-10 9:01
professionalEddy Vluggen16-Jan-10 9:01 
GeneralRe: combo box in datagrid in vb6 Pin
sohil masani22-Jan-10 20:03
sohil masani22-Jan-10 20:03 
Questiondate from calender control into Crystal report. Pin
jeshra27915-Jan-10 8:40
jeshra27915-Jan-10 8:40 
AnswerRe: date from calender control into Crystal report. Pin
thatraja15-Jan-10 21:03
professionalthatraja15-Jan-10 21:03 
QuestionActiveDs.IADsComputer and ADSPath Pin
AURANEXT15-Jan-10 5:26
AURANEXT15-Jan-10 5:26 
AnswerRe: ActiveDs.IADsComputer and ADSPath Pin
AURANEXT15-Jan-10 5:55
AURANEXT15-Jan-10 5:55 
QuestionObject reference not set to an instance of an object. Pin
Saqib Jabbar15-Jan-10 1:31
Saqib Jabbar15-Jan-10 1:31 
AnswerRe: Object reference not set to an instance of an object. Pin
DaveAuld15-Jan-10 1:52
professionalDaveAuld15-Jan-10 1:52 
GeneralRe: Object reference not set to an instance of an object. Pin
Saqib Jabbar15-Jan-10 18:09
Saqib Jabbar15-Jan-10 18:09 
AnswerRe: Object reference not set to an instance of an object. Pin
Estys15-Jan-10 23:02
Estys15-Jan-10 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.