Click here to Skip to main content
16,008,719 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: 2 problems with MS Access Pin
vertig07308-Apr-05 4:18
vertig07308-Apr-05 4:18 
GeneralSql Server Service in Win98 Pin
| Muhammad Waqas Butt |8-Apr-05 2:22
professional| Muhammad Waqas Butt |8-Apr-05 2:22 
GeneralRe: Sql Server Service in Win98 Pin
Dave Kreskowiak8-Apr-05 4:08
mveDave Kreskowiak8-Apr-05 4:08 
GeneralRe: Sql Server Service in Win98 Pin
Anonymous9-Apr-05 8:59
Anonymous9-Apr-05 8:59 
GeneralRe: Sql Server Service in Win98 Pin
Dave Kreskowiak9-Apr-05 10:01
mveDave Kreskowiak9-Apr-05 10:01 
GeneralGrid To Grid And then Backto DB Pin
| Muhammad Waqas Butt |8-Apr-05 2:03
professional| Muhammad Waqas Butt |8-Apr-05 2:03 
GeneralWrite to Stream Pin
nitin_ion7-Apr-05 22:56
nitin_ion7-Apr-05 22:56 
GeneralRe: Write to Stream Pin
Dave Kreskowiak8-Apr-05 3:43
mveDave Kreskowiak8-Apr-05 3:43 
I don't have the compilter in front of me, so I can't verify this, but you should be able create a MemoryStream object, docs are here[^] on MSDN and use that as the backing store for the XmlTextWriter. XmlTextWriter can accept any class that inherits from the Stream class, which MemoryStream does.
' Create an auto expanding MemoryStream object
Dim memStream As New MemoryStream()
' Create a new XmlTextWriter using the default encoding of UTF-8
' and point it to the new MemoryStream backing store.
Dim writer As New XmlTextWriter(memStream, Nothing)
writer.Formatting = Formatting.Indented
writer.Indentation = 4
writer.WriteStartElement("Clients")
writer.WriteStartElement("Client")
writer.WriteStartElement("Name")
writer.WriteString("Joe Bag 'o Donuts")
writer.WriteEndElement()
writer.WriteEndElement()
writer.WriteEndElement()

Don't forget to .Flush() and .Close() when you're done! Big Grin | :-D


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Write to Stream Pin
nitin_ion8-Apr-05 18:09
nitin_ion8-Apr-05 18:09 
GeneralRe: Write to Stream Pin
Dave Kreskowiak9-Apr-05 10:15
mveDave Kreskowiak9-Apr-05 10:15 
GeneralGot stuck with a problem!!! Pin
Mahesh16797-Apr-05 22:10
Mahesh16797-Apr-05 22:10 
GeneralRe: Got stuck with a problem!!! Pin
Dave Kreskowiak8-Apr-05 3:24
mveDave Kreskowiak8-Apr-05 3:24 
GeneralHandling COM events in VB for Applications Pin
Anonymous7-Apr-05 21:41
Anonymous7-Apr-05 21:41 
GeneralRe: Handling COM events in VB for Applications Pin
Anonymous8-Apr-05 4:58
Anonymous8-Apr-05 4:58 
GeneralRe: Handling COM events in VB for Applications Pin
Anonymous8-Apr-05 5:21
Anonymous8-Apr-05 5:21 
GeneralRe: Handling COM events in VB for Applications Pin
Anonymous8-Apr-05 6:32
Anonymous8-Apr-05 6:32 
GeneralRe: Handling COM events in VB for Applications Pin
GizzoF10-Apr-05 21:14
GizzoF10-Apr-05 21:14 
GeneralGrouping Properties Pin
AEAVY7-Apr-05 21:17
AEAVY7-Apr-05 21:17 
GeneralBlob field Pin
shinay7-Apr-05 19:52
shinay7-Apr-05 19:52 
GeneralRe: Blob field Pin
Anonymous8-Apr-05 5:18
Anonymous8-Apr-05 5:18 
GeneralRe: Blob field Pin
shinay8-Apr-05 7:16
shinay8-Apr-05 7:16 
GeneralPassing the where clause to a query in Access Pin
martin@martindeleon.com7-Apr-05 14:56
sussmartin@martindeleon.com7-Apr-05 14:56 
GeneralRe: Passing the where clause to a query in Access Pin
Christian Graus7-Apr-05 15:18
protectorChristian Graus7-Apr-05 15:18 
Generalfile extension Pin
acnetonline7-Apr-05 9:10
acnetonline7-Apr-05 9:10 
GeneralRe: file extension Pin
Anonymous7-Apr-05 18:35
Anonymous7-Apr-05 18:35 

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.