Click here to Skip to main content
15,894,343 members
Home / Discussions / Article Writing
   

Article Writing

 
QuestionHow do I print a pdf file from browser? Pin
19-Apr-01 6:21
suss19-Apr-01 6:21 
QuestionHow do I print a pdf file from browser? Pin
19-Apr-01 6:21
suss19-Apr-01 6:21 
QuestionHow to unbind a network protocol ? Pin
19-Apr-01 5:12
suss19-Apr-01 5:12 
AnswerRe: How to unbind a network protocol ? Pin
2-May-01 5:42
suss2-May-01 5:42 
QuestionBarcode ? Pin
Sasa Kajic19-Apr-01 3:25
Sasa Kajic19-Apr-01 3:25 
AnswerRe: Barcode ? Pin
abhilashnathrs20-Apr-01 18:56
abhilashnathrs20-Apr-01 18:56 
AnswerRe: Barcode ? Pin
abhilashnathrs20-Apr-01 18:56
abhilashnathrs20-Apr-01 18:56 
GeneralLoading XML strings into a DHTML Active X Control Pin
Martin Hinchy16-Apr-01 20:23
Martin Hinchy16-Apr-01 20:23 
I have an MFC based dialog application that contains a DHTML ActiveX control. I want to be able to pass an XML string to the control and have the XML displayed in the control.

Does anyone know if there is a way to do this? I have tried passing an XML string to the control using the CDHTMLEdit::SetDocumentHTML() method but it does not work. It will only correctly display HTML strings.

Due to my lack of success with the DHTML control I decided to replace the control with the Microsoft Web Browser ActiveX control to see if I could load XML strings into this control. I eventually got this to work ok but only after saving the XML to a file on the harddrive and then calling CWebBrowser2::Navigate(), passing the Navigate method the name of the file just saved.

Even though this works I would prefer to be able to pass the XML as a string straight into the control without having to save the xml to disk first. On the MSDN website there is some example code which shows how to load HTML content directly from a stream into the WebBrowser control. This does not work though with XML. Does anyone know why?



Martin Hinchy
GeneralRe: Loading XML strings into a DHTML Active X Control Pin
Erik Thompson17-Apr-01 7:33
sitebuilderErik Thompson17-Apr-01 7:33 
QuestionSQL Parser for OLE DB Provider..? Pin
16-Apr-01 18:38
suss16-Apr-01 18:38 
AnswerRe: SQL Parser for OLE DB Provider..? Pin
2-May-01 5:57
suss2-May-01 5:57 
GeneralBarcoding Source Code Pin
16-Apr-01 8:41
suss16-Apr-01 8:41 
GeneralFrameLess Window Pin
Vimal15-Apr-01 20:49
Vimal15-Apr-01 20:49 
GeneralRe: FrameLess Window Pin
2-May-01 5:47
suss2-May-01 5:47 
Generaldocking dialogbars Pin
Wayne Janaway13-Apr-01 8:00
Wayne Janaway13-Apr-01 8:00 
GeneralRe: docking dialogbars Pin
2-May-01 5:48
suss2-May-01 5:48 
GeneralI NEED SOME C CODE Pin
Verbatim12-Apr-01 8:22
Verbatim12-Apr-01 8:22 
GeneralRe: I NEED SOME C CODE Pin
Michael Dunn12-Apr-01 13:33
sitebuilderMichael Dunn12-Apr-01 13:33 
GeneralSource Safe Pin
9-Apr-01 3:38
suss9-Apr-01 3:38 
GeneralRe: Source Safe Pin
Berry van Olphen9-Apr-01 3:48
professionalBerry van Olphen9-Apr-01 3:48 
GeneralRe: Source Safe Pin
9-Apr-01 4:02
suss9-Apr-01 4:02 
GeneralRe: Source Safe Pin
Derek Lakin9-Apr-01 5:32
Derek Lakin9-Apr-01 5:32 
GeneralmIRC Pin
Drake Elsari6-Apr-01 13:19
Drake Elsari6-Apr-01 13:19 
Generalalgorithm for connection lines Pin
Thomas Freudenberg5-Apr-01 10:48
Thomas Freudenberg5-Apr-01 10:48 
GeneralRe: algorithm for connection lines Pin
Chris Losinger5-Apr-01 10:56
professionalChris Losinger5-Apr-01 10:56 

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.