|
-
Jul 26th, 2006, 11:37 AM
#1
Thread Starter
New Member
[2005] Generating XML fm .txt file via VB.net
Dear All,
I am using VB.net 2005 Express Edition. However, I have got the problem when XML is being generated with the following codes.
xtw.WriteElementString("PARTCODE", c.Range.Cells.Item(1).Range.Text.ToString)
xtw.WriteElementString("QTY", c.Range.Cells.Item(1).Range.Text.ToString)
in the block of "ORDERLINENO"
The generated XML file show me there is an unreadable string ("") at the end of element.
I tried to change fm Cells to Words
xtw.WriteElementString("PARTCODE", c.Range.Words.Item(1).Text.ToString)
xtw.WriteElementString("QTY", c.Range.Words.Item(2).Text.ToString)
The output looks better, but I can't get the value from the Doc for QTY
Could anybody help me to indicate what the problem is and any solution that I could try?
Thank you very much !!
Best regards,
Sagittarius
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|