cybergonzo
asked on
I use TCppWebBrowser to POST data and receive the resulting page BUT if the result is XML this doesn't work ?
if (!(!pCppWebBrowser->Busy && pOutputStrings && pCppWebBrowser->Document &&
String(pCppWebBrowser->Loc
SUCCEEDED(pCppWebBrowser->
IID_IHTMLDocument2, (LPVOID*)&HTMLDocument))))
{
BrowserStatus=BROWSER_NOT_
}
else
{
// Following DOES NOT WORK in case the result is XML !????? Any idea why ??
// Page has been loaded, now extract the content of the file
if(SUCCEEDED(HTMLDocument-
{
// Save the file content to a temporary file
PersistFile->Save(WideStri
PersistFile->Release();
}
// OR ... another approach ...
// WHICH ALSO doesn't work :
IHTMLElement *HTMLBody = NULL;
if(SUCCEEDED(HTMLDocument-
{
BSTR HTMLSource;
if(HTMLBody && SUCCEEDED(HTMLBody->get_ou
{
TMemo *Memo = new TMemo(BrowserParentForm) ;
Memo->Text = WideString(HTMLSource);
Memo->Lines->SaveToFile(Te
.....
Above code works great if the data is html for instance but if the result is XML then Getting the body or persistfile fails ?
Any ideas ???
ASKER
Via another post (newsgroups) I have been advised to use NMHTML as component, which I'm checking out now.
It may not be (properly) doable with pCppWebBrowser anyway (?)
It may not be (properly) doable with pCppWebBrowser anyway (?)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you use BCB6 there is one under the internet tab. In Pro version I use there is one.
In BCB5 you have to add it manually as component.
gtokas.