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
Anoop Brijmohun
Posts
-
Android Mobile Dvelopment -
XML to DataTable/DataGridHi thanks, will try this out nd get back to you. thanks for your help... :)
-
XML to DataTable/DataGridHi , 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")
-
XML to DataTable/DataGridHi 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
-
Alternate Blackberry webworks sdk for VS 2008 download siteHi Yes, i did! sent them a screen-shot of the error. thanks
-
Alternate Blackberry webworks sdk for VS 2008 download siteHi 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
-
Read .rtf file and save as .txtthanks, 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! :)
-
Read .rtf file and save as .txthi, sorry i tried to make it more readable for you guys. i seemed to have mis-renamed the var on this snippet. thanks
-
Read .rtf file and save as .txtHi 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.Documentword_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:
-
HOW TO SET Crystal Sub report Paper sourceHi 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
NextCatch ex As Exception Throw New Exception(ex.Message & vbCrLf) End Try End Function
thanks
-
Getting Started - WPF/ WCF/ WWFHi 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
-
Set Print Document Name For Crystal ReportHi Guys, Does any one know how to set the document name of a crystal report that appears on the printer job list. thanks
-
How To Create a basic Gantt chartHi, Thx, will check this out! much appreciated!
-
How To Create a basic Gantt charthi 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
-
APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2Hi 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
-
APPLICATION 1 TO ACCESS GLOBAL VARIABLE THATS IN APPLICATION 2Hi 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
-
Convert String DataType To Form ObjectHi, 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
-
ho to retrieve a list of dependantsHi, 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
-
How To Install Applications of A Client PC RemotelyHi 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
-
ho to retrieve a list of dependantsHi 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