Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Anoop Brijmohun

@Anoop Brijmohun
About
Posts
118
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Android Mobile Dvelopment
    A Anoop Brijmohun

    Hi guys, im currently a vb.net developer using vs 2010, im currenlty looking at getting into mobile applictaion development on android platform. could you suggest where i could start or tools i require to begin with, i would really appreciate some direction here. thanks Anoop

    Mobile csharp android visual-studio tools

  • XML to DataTable/DataGrid
    A Anoop Brijmohun

    Hi thanks, will try this out nd get back to you. thanks for your help... :)

    Visual Basic help xml

  • XML to DataTable/DataGrid
    A Anoop Brijmohun

    Hi , thanks for your help... there was a slight typo error in the xml structure... it should have reflected as below

    <Orders>
    <OrderHeader>
    <CustomerPoNumber>TEST1</CustomerPoNumber>
    <ErrorMessages>
    <ErrorDescription>Invalid Po 'TEST1'</ErrorDescription>
    </ErrorMessages>
    </OrderHeader>
    <OrderDetails>
    <Stock>
    <Line>0001</Line>
    <ErrorMessages>
    <ErrorDescription>'EAE' invalid</ErrorDescription>
    <ErrorDescription>'EAS' invalid</ErrorDescription>
    </ErrorMessages>
    </Stock>
    <Stock>
    <Line>0002</Line>
    <ErrorMessages>
    <ErrorDescription>Price invalid</ErrorDescription>
    </ErrorMessages>
    </Stock>
    </OrderDetails>
    </Orders>

    i have managed to come up with a solution that works for now even though it's very messy... have a look...

    Private Function GetErrors(ByVal XML As String, ByVal Path As String) As DataTable
        Try
            Dim DOC As New Xml.XmlDocument
            DOC.LoadXml(XML)
    
            Dim ndParent As XmlNodeList
           'Path = //Orders
            ndParent = DOC.SelectNodes(Path)
    
            Dim nd As XmlNode
            Dim ndC1 As XmlNode
            Dim ndC2 As XmlNodeList
            Dim nd1 As XmlNode
            Dim nd2 As XmlNode
            Dim out As String = ""
    
            
            Dim dt As New DataTable
            dt.Columns.Add("PoNum")
            dt.Columns.Add("So")
            dt.Columns.Add("Line")
            dt.Columns.Add("Error")
            dt.Columns.Add("ErrHdr")
            Dim row As DataRow
    
            Dim PoNum As String = ""
            Dim Line As Integer = 0
            Dim errmsg As String = ""
            Dim errhdr As String = ""
    
            For Each nd In ndParent
                'below reads the first level i.e. order header + order details
                For Each ndC1 In nd.ChildNodes
                    Select Case ndC1.Name.Trim
                        Case "OrderHeader"
                           'get the childnodes of OrderHeader
                           'xml result should search for FieldName i.e. "CustomerPoNumber"
                            ndC2 = ndC1.ChildNodes
                            PoNum = XmlResult(ndC2, "CustomerPoNumber")
                            errhdr = XmlResult(ndC2, "ErrorMessages")
    
    Visual Basic help xml

  • XML to DataTable/DataGrid
    A Anoop Brijmohun

    Hi All, I am trying to get specific values from the xml below, however i cannot get the desired result. the xml structure is as below..

    <Orders>
    <OrderHeader>
    <CustomerPoNumber>TEST1</CustomerPoNumber>
    <ErrorMessages>
    <ErrorDescription>Invalid Po 'TEST1'</ErrorDescription>
    </ErrorMessages>
    </OrderHeader>
    <OrderDetails>
    <Line>0001</Line>
    <ErrorMessages>
    <ErrorDescription>'EAE' invalid</ErrorDescription>
    </ErrorMessages>
    <ErrorMessages>
    <ErrorDescription>'EAS' invalid</ErrorDescription>
    </ErrorMessages>
    <Line>0002</Line>
    <ErrorMessages>
    <ErrorDescription>Price invalid</ErrorDescription>
    </ErrorMessages>
    </OrderDetails>
    </Orders>

    the result i am looking for is as below in a datatable with column headings PoNum|Header|Line|Error| TEST1|Invalid Po 'TEST1'|0001|'EAE' invalid & 'EAS'invalid TEST1|Invalid Po 'TEST1'|0002|Price invalid thx for your time and help Anoop

    Visual Basic help xml

  • Alternate Blackberry webworks sdk for VS 2008 download site
    A Anoop Brijmohun

    Hi Yes, i did! sent them a screen-shot of the error. thanks

    Mobile visual-studio question

  • Alternate Blackberry webworks sdk for VS 2008 download site
    A Anoop Brijmohun

    Hi guys, I have tried many times to download the SDK from blackberry, but it seems after a while it times out and i have only downloaded aboiut 80%.i have tried google but only can find it at the same blackberry site. my buddy also tried with same result. any suggestions? :confused: thanks

    Mobile visual-studio question

  • Read .rtf file and save as .txt
    A Anoop Brijmohun

    thanks, i have used something similar.

    Me.RichTextBox1.LoadFile(in_file)

            Dim sr As New IO.StreamWriter(out\_file, False)
            sr.Write(Me.RichTextBox1.Text)
            sr.Close()
    

    thanks guys! :)

    Visual Basic csharp com sysadmin help

  • Read .rtf file and save as .txt
    A Anoop Brijmohun

    hi, sorry i tried to make it more readable for you guys. i seemed to have mis-renamed the var on this snippet. thanks

    Visual Basic csharp com sysadmin help

  • Read .rtf file and save as .txt
    A Anoop Brijmohun

    Hi guys, i have a vb.net application that watched a folder and whenever a rtf file is dropped i want to read the text an save it to a txt file. here's my code

    Dim word_app As New Microsoft.Office.Interop.Word.Application
    Dim word_doc As New Microsoft.Office.Interop.Word.Document

    word_doc= word_app.Documents.Open(in_file, False, True, False, , , , , ,Microsoft.Office.Interop.Word.WdOpenFormat.wdOpenFormatRTF)
    word_doc.ActiveWindow.Selection.WholeStory()
    word_doc.ActiveWindow.Selection.Copy()
    str = My.Computer.Clipboard.GetData(GetType(String).ToString)
    'word_doc.SaveAs(out_file, Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatText)

    doc.Close(False)
    word_server.Quit()

    Dim sr As New IO.StreamWriter(out_file, False)
    sr.Write(str)
    sr.Close()

    this is running on the a windows 2008 rc2 server as a window service. the error messaage is "Object reference not set to an instance of an object" if there is another simpler way please advise. thank you kindly Anoop :confused:

    Visual Basic csharp com sysadmin help

  • HOW TO SET Crystal Sub report Paper source
    A Anoop Brijmohun

    Hi Guys, I have a Crystal report with a sub report. i need to set the subreport to use paper from an alt. tray from the printer. any ideas?

    rptMain.Subreports(0).PrintOptions.CustomPaperSource = GetSelectedPaperSource(Me.cbDft.Text.Trim)

    Private Function GetSelectedPaperSource(ByVal paper As String) As System.Drawing.Printing.PaperSource
    Try
    Dim selectedPaperSource As System.Drawing.Printing.PaperSource = New System.Drawing.Printing.PaperSource
    Dim myPrinterSettings As System.Drawing.Printing.PrinterSettings = New System.Drawing.Printing.PrinterSettings()
    myPrinterSettings.PrinterName = Me.lblPrinter.Text.Trim
    For Each myPaperSource As System.Drawing.Printing.PaperSource In myPrinterSettings.PaperSources
    If myPaperSource.SourceName = paper Then
    Return myPaperSource
    End If
    Next

        Catch ex As Exception
            Throw New Exception(ex.Message & vbCrLf)
        End Try
    End Function
    

    thanks

    Visual Basic graphics tutorial question

  • Getting Started - WPF/ WCF/ WWF
    A Anoop Brijmohun

    Hi Guys, Im currenlty a Vb.net developer. I wanna learn how to use the above technologies. Which book or site would you suggest should be read to get started! thanks Anoop

    WPF csharp wpf wcf tutorial

  • Set Print Document Name For Crystal Report
    A Anoop Brijmohun

    Hi Guys, Does any one know how to set the document name of a crystal report that appears on the printer job list. thanks

    Visual Basic tutorial career

  • How To Create a basic Gantt chart
    A Anoop Brijmohun

    Hi, Thx, will check this out! much appreciated!

    Visual Basic csharp tutorial

  • How To Create a basic Gantt chart
    A Anoop Brijmohun

    hi Guys... do you know of any links that will teach me on how to create a simple gantt chart in vb.net. or any free controls available for my project. i have tried google and msdn but have not seen anything that would point me in the right direction. i need this to create a simple sched program. thanks Anoop

    Visual Basic csharp tutorial

  • APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2
    A Anoop Brijmohun

    Hi Thanks For You Response. The App 1 is not my application, its part of an ERP System created by someone else. Within the App1,there are variables that can be called by built in script editors. mmmm... just thought there might be a simple way to access that specific variable. The whole idea behind was that i was building an app [2] to run automated task and instead of the user logging in again, i would be able to get the logged in user from app1 and process. thanks. Anoop

    Visual Basic question

  • APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2
    A Anoop Brijmohun

    Hi Guys, im not sure if this is possible, Say for eg. I have an application running which has a global variable "User" Declared. i want to retrieve the value stored in "User" from another application. how can this be done? if so, can you direct me to the link? much appreciated, thanks Anoop

    Visual Basic question

  • Convert String DataType To Form Object
    A Anoop Brijmohun

    Hi, You Can try This.... http://www.vbforums.com/showthread.php?t=538427[^] http://www.programmersheaven.com/mb/VBNET/217962/217962/how-to-convert-string-type-to-control-type--/[^] hope this helps Anoop Brijmohun

    Visual Basic question

  • ho to retrieve a list of dependants
    A Anoop Brijmohun

    Hi, nope this returns no data... i am using SQL2005 and have a view that is dependant on several other views. any other suggestions are welcomed... thank you Anoop

    Database question sharepoint

  • How To Install Applications of A Client PC Remotely
    A Anoop Brijmohun

    Hi Guys, I need some help or some direction in what i am trying to do. basically i want to know how to install an application on a client pc from the server, using vb.net. kinda like how symantec does it, with the GUI and just click on network pc and install. I have googled and checked out msdn but with no luck. is there any documentation that you know that could help me in this...? thank you in advance Anoop

    Visual Basic sysadmin csharp help tutorial

  • ho to retrieve a list of dependants
    A Anoop Brijmohun

    Hi All i have a view in sql2005. this view links to several other views and those views may link to other views. how do i get a completed list of dependancies? i have tried to use this but only gives me the 1st level EXEC sp_MSdependencies N'viewname', null, 131527 thanks in advance Anoop

    Database question sharepoint
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups