Click here to Skip to main content
15,892,674 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: tab spacing Pin
Dave Doknjas6-Mar-10 10:53
Dave Doknjas6-Mar-10 10:53 
QuestionURGENT--setting width of column in excel throgh code+vb Pin
chetan_agarwal5-Mar-10 22:57
chetan_agarwal5-Mar-10 22:57 
AnswerRe: URGENT--setting width of column in excel throgh code+vb Pin
Dalek Dave5-Mar-10 23:35
professionalDalek Dave5-Mar-10 23:35 
Questiontext box in VB application Pin
chetan_agarwal5-Mar-10 19:46
chetan_agarwal5-Mar-10 19:46 
AnswerRe: text box in VB application Pin
DaveAuld5-Mar-10 20:35
professionalDaveAuld5-Mar-10 20:35 
Questiondynamically writing text into word document using vb.net Pin
vijaylumar5-Mar-10 18:46
vijaylumar5-Mar-10 18:46 
AnswerRe: dynamically writing text into word document using vb.net Pin
Paramu19736-Mar-10 2:57
Paramu19736-Mar-10 2:57 
Questionstoring xml in database [solved] Pin
TremaHD5-Mar-10 5:53
TremaHD5-Mar-10 5:53 
Hi,

I need to store a string that represent an XML file in a database. In the database, the field is of type ntext. The XML parser will take that field and extract all he needs. The XML parser expect an UTF-8 encoding. Since in VB.Net a string type is UTF-16, I can't create my XML string and store that string in the db because I will have an UTF-16 encoding instead of UTF-8 encoding. What I understand is that in VB I can create a byte array and convert my string to UTF-8 and store that conversion in the byte array. My question: how can I write that array to the field in the database that he is of type ntext?

Thanks
modified on Tuesday, March 9, 2010 8:12 PM

AnswerRe: storing xml in database Pin
Dave Kreskowiak5-Mar-10 7:34
mveDave Kreskowiak5-Mar-10 7:34 
GeneralRe: storing xml in database Pin
TremaHD5-Mar-10 9:41
TremaHD5-Mar-10 9:41 
GeneralRe: storing xml in database Pin
Dave Kreskowiak5-Mar-10 12:00
mveDave Kreskowiak5-Mar-10 12:00 
GeneralRe: storing xml in database Pin
TremaHD6-Mar-10 4:27
TremaHD6-Mar-10 4:27 
GeneralRe: storing xml in database Pin
Dave Kreskowiak6-Mar-10 18:03
mveDave Kreskowiak6-Mar-10 18:03 
GeneralRe: storing xml in database Pin
TremaHD7-Mar-10 5:09
TremaHD7-Mar-10 5:09 
GeneralRe: storing xml in database Pin
Dave Kreskowiak7-Mar-10 9:00
mveDave Kreskowiak7-Mar-10 9:00 
GeneralRe: storing xml in database Pin
TremaHD7-Mar-10 13:13
TremaHD7-Mar-10 13:13 
GeneralRe: storing xml in database Pin
Dave Kreskowiak7-Mar-10 17:17
mveDave Kreskowiak7-Mar-10 17:17 
GeneralRe: storing xml in database Pin
TremaHD9-Mar-10 14:13
TremaHD9-Mar-10 14:13 
AnswerRe: storing xml in database Pin
Luc Pattyn6-Mar-10 5:21
sitebuilderLuc Pattyn6-Mar-10 5:21 
Question[VB.NET/2.0] Clicking ok or cancel on MessageBox with other application using TCPListener Pin
SiXke5-Mar-10 1:20
SiXke5-Mar-10 1:20 
AnswerRe: [VB.NET/2.0] Clicking ok or cancel on MessageBox with other application using TCPListener Pin
Dave Kreskowiak5-Mar-10 2:18
mveDave Kreskowiak5-Mar-10 2:18 
QuestionWill an Excel 2007 application work in Excel 2003 Pin
KLangkilde4-Mar-10 23:36
KLangkilde4-Mar-10 23:36 
AnswerRe: Will an Excel 2007 application work in Excel 2003 Pin
Thomas Krojer5-Mar-10 2:53
Thomas Krojer5-Mar-10 2:53 
AnswerIncompatible file formats Pin
David Mujica5-Mar-10 3:13
David Mujica5-Mar-10 3:13 
AnswerRe: Will an Excel 2007 application work in Excel 2003 Pin
Dave Kreskowiak5-Mar-10 3:15
mveDave Kreskowiak5-Mar-10 3:15 

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.