|
Hello,
I am reading an rss feed that has an xml tag <link> with a specified http inside it </link>. I am reading this rss feed and writing it into an xml file for my php application to process it.
What I exactly need is writing into an XML file, the content that i get from the link tag when i open it in a browser into the description tag in my xml file.
Eg. <link>http:blablabla</link> if i open the http link in a browser I will get in the browser: more bla bla bla
So what i want is to have the content (more bla bla bla) read from the link tag and be written into my XML file that i am generating.
This is the code for reading the link tag, please advise how can I get out a functional code for my problem.
<pre>
Dim doc As New XmlDocument()
doc.Load("http://www.kse.com.kw/PORTAL/A/RSS/")
Dim nodes As XmlNodeList = doc.SelectNodes("rss/channel/item/link")
For Each node As XmlNode In nodes
Dim http As String = node.InnerText
Dim xml As String = New WebClient().DownloadString(http).ToString
Next
</pre>
|
|
|
|
|
Dear friends,
How to get the sql instance name running on the computer in window form in vb.net
Thanx
Taher
|
|
|
|
|
|
Hi I am Lenu Thomas from INDIA,
There is Deferent Language in India; I am making Library Books Software, I am using “Vb.Net Visual Basic Datagrid” Deferent Language books Name Display in Datagrid. How to Change Font?
I show this Model
No., Book Name, Language, Price, Year, Authors, Publish
1., The Pathos, English, 150, 2000, Colin Warner, OM Publsh
2., thZ]pkvXI Dt, Malayalam, 70 1900, Charles John, OM Publsh
3., n§Ä¡v F´p t, Hindi, 300, 2005, Abd-Ul - %.., ISPCK Publsh
Number 2 Display Malayalam Name, Number 3 Display Hindi Name, How to change in Datagrid Cell
I am using to Deferent Font this is not work. Please help send Sample code from VB.Net Visual Basic
My E-Mail lenuthomas@hotmail.com
|
|
|
|
|
Wtf is a “Vb.Net Visual Basic Datagrid” Deferent Language books Name Display?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Hi I am Lenu Thomas from INDIA,
There is Deferent Language in India; I am making Library Books Software, I am using “Vb.Net Visual Basic Datagrid” Deferent Language books Name Display in Datagrid. How to Change Font?
I show this Model
No. Book Name Language Price Year Authors Publish
1. The Pathos English 150 2000 Colin Warner OM Publsh
2. thZ]pkvXI Dt Malayalam 70 1900 Charles John OM Publsh
3. n§Ä¡v F´p t Hindi 300 2005 Abd-Ul - %.. ISPCK
Number 2 Display Malayalam Name, Number 3 Display Hindi Name, How to change in Datagrid Cell
I am using to Deferent Font this is not work. Please help send Sample code from VB.Net Visual Basic
My E-Mail lenuthomas@hotmail.com
|
|
|
|
|
Hi
I have written query like:
dim str as string="true"
Dim cmd As New OleDb.OleDbCommand("Select max(Invoice_No) from Invoice where flag= '" & str & "'", cn)
cn.Open
If IsDBNull(cmd.ExecuteScalar()) = True Then
This statment fires exception:"No value given for one or more required parameters."
when i fire this query directly from access,it runs successfully
what is actual problem,i don't understand
Thanks
monika
|
|
|
|
|
There are a few possible problem's
1: flag
if this is a yes/no field in access (wich I assume it is) then the ' are not allowed
so you'r query would be : (Select max(Invoice_No) from invoice where flag=" & str , cn)
2: there could be something wrong with you'r connection (cn) have you tested this?
(easy to do with a simple "select invoice_no from invoice")
hope this helps
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
hai all,
i am using .net 2005.i doing my project in vb.net windows application.i want to display nos like 1,2,3,4 in horizontally in details section of crystal report for visual studio.net.
i have stored nos 1,2,3,4 in sql 2000 server.then i extract these datas from sql 2000 server and to display the nos 1,2,3,4 in crystalreport.
in my project,these nos are displayed in vertical like follow,
output:
bill nos are 1
2
3
4
i don't want above output in vertical.i want output in horizontal like follow:
billnos are 1,2,3,4
|
|
|
|
|
hai all,
its very urgent...plz help...the above question can't understand nplz ask me...
|
|
|
|
|
The reason you get them verticly is because you'v put the nummers in a column in sql and then put that column as a field on the report in the details section. wich means for every record in you'r table there will be a field on you'r report (expanding verticly)
I don't know of any way to make it expand horizontaly but since you fill you'r table in code (probably) why not define a new column in the table and store all the numbers in there as a string. then on the report all you have to do is put that field on the report header or footer and you get the billnos are 1,2,3,4 like you want
It's not the 'cleanest' way to do it but if you are in a hurry it should work
Hope this helps
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
I believe you already asked this question a few days ago... did you try out the answers you got?
|
|
|
|
|
hi,
first choose section Expert which show all the section of your Report on left hand side and related option on right hand side.
Now choose Details section from the section list and check the option with name "Format with multiple column". when you check this option, one extra tab(name "Layout") is added in panel located at Top-right corner.
click on layout tab and set Detailsize ,Gap between Details and printing direction related field
after appropriate setting ,click on ok button.This action Change the width of details section.Now place the bill number related field in detail section and run the report
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
i have created one gridview that is working fine. my question is add edit and delete button how to write coding in this two options?
gandhi
|
|
|
|
|
Is this a winforms question, or are you in the wrong forum ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is there a way to make a combo box multidimensional.
I am populating a combo box through code using from a table
REPORT_CHOICE.AddItem !FIELD_NAME
The table I am using has two columns FILED_NAME and TABLE_NAME
Is there a way to make a combo box multidimensional to hold both columns and be able to extract both colums to two different variables after I make a selection on the drop down box or do I need to
1) reconect to the table
2) search for the "FIELD_NAME" value I selected in the drop down box
3) populate my second variable with the "TABLE_NAME" table value
Thanks
|
|
|
|
|
No, there's no way to do that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi,
try something like
first of all make a structure
this is the code for the structure.
Private Structure ComboMultipleData<br />
Dim FILED_NAME As String<br />
Dim TABLE_NAME As String<br />
Public Sub New( ByVal FieldVal As String, ByVal TableVal As String)<br />
<br />
FILED_NAME = FieldVal <br />
TABLE_NAME = TableVal <br />
End Sub<br />
<br />
Public Overrides Function ToString() As String<br />
Return Me.FILED_NAM<br />
End Function<br />
End Structure
And the code to put this in the combobox and translate it when the user selects an item from the list.
Private Sub frmDemo_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
'for the purposes of this demo I am hard coding the entries<br />
With REPORT_CHOICE<br />
.Items.Add(New ComboMultipleData( "FieldVal1", "Table 1"))<br />
.Items.Add(New ComboMultipleData( "FieldVal2", "Table 2"))<br />
.Items.Add(New ComboMultipleData( "FieldVal3", "Table 3"))<br />
End With<br />
<br />
End Sub<br />
<br />
Private Sub REPORT_CHOICE_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles REPORT_CHOICE.SelectedIndexChanged<br />
'in this case simply put the data up into the available fields<br />
Dim acc As ComboMultipleData= CType(cboAccounts.SelectedItem, ComboMultipleData)<br />
<br />
txtFieldName.Text = acc.FILED_NAME<br />
txtTableName.Text = acc.TABLE_NAME<br />
End Sub
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
First point of interest is that the application is being developed on a mobile device using .NET CF 2.0. On to the problem...
I have a combo box set to DropDown so the user can enter text if the provided options don't apply. This text eventually is sent, via a stored procedure, to a database. I'm trying to limit the number of characters allowed in this combo box to the max size of the field in the particular table I'll be writing to.
The problem is that .NET CF 2.0 ComboBox doesn't include any method for setting the position of the cursor within the combo box.
As of right now, once the limit is reached I set the text of the combo box back to what it was prior to the key being pressed. This, unfortunately, causes the cursor to return to the front of the combo box. I want the cursor to remain at the end of the text.
Anyone encounter (and overcome) this problem in the past? Or perhaps any ideas of how to overcome it?
|
|
|
|
|
Just a thought, but maybe you can set up a text changed event and count how long your text string is. Once the text hits a length = X then run a REGEX to replace the next char with a back space.
|
|
|
|
|
hy everyone!
i know this question is off topic but maybe someone could help me solving this problem. i have already been searching in google etc. but couldn't find any solution to the following problem:
i would like to check, if a file is write protected and if it is i want to remove this write protection in/via a vbs program/script.
does anyone know how to do this?
thanks!
stephan.
|
|
|
|
|
|
oh well, it's already quit late here
but thanks anyway
|
|
|
|
|
I am not sure what I need to do to get this done, so Be nice.
First off some background Info
I am creating a Class in a Windows Scripting Component File (.WSC), that will connect to a DB and run Querys for me.
Then I will use a Vbscript and reference the WSC file to it, and call the functions.
On my Script, I will call the Function OpenDBConnection() (which sets up the connection to the DB).
How do I pass the connection from OpenDBConnection to the Function GetSomethingDone() from the script that called OpenDBConnection()
Class SQLDBQuery
Private objSQLConn
Private Sub Class_Initialize
Set objSQLConn = CreateObject("ADODB.Connection")
End Sub
Public Function OpenDBConnection(strDomainController)
Dim strDBPath
strDBPath = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDomainController & "netlogon\user.mdb"
objSQLConn.Open strDBPath
Set OpenDBConnection = objSQLConn
End Function
Function GetSomethingDone
Do something Here....
End Function
End Class
Private objSQLDBQuery
Set objSQLDBQuery = New SQLDBQuery
Function OpenDBConnection(strDomainController)
Set objSqlConnection = objSQLDBQuery.OpenDBConnection(strDomainController)
Set OpenDBConnection = objSqlConnection
End Function
|
|
|
|
|
Just to Update the Code in the post is from the WSC file.
|
|
|
|