Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

voo doo12

@voo doo12
About
Posts
15
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to save IHTMLELEMENT of Tag IMG
    V voo doo12

    Thanks for replaying. But the thing is I do not want to download the image again. IWebBrowser control downloaded the image already. I want to save form IWebBrowser not download it from internet again.

    C / C++ / MFC css help tutorial question

  • How to save IHTMLELEMENT of Tag IMG
    V voo doo12

    Hi every one. I'm tring to save IHTMLElement which has IMG tag to hard drive. I'm not tring to save the entire web page as image. NO. I'm tring to save single image (IHTMLElement of Tag IMG) to hard drive. I tried IHTMLElementRender::DrawToDC(), but it works only if the IHTMLElement size is less than the physical size of my computer screen. If the IHTMLElement (the single image or picture) size is larger than my computer's screen, the function ( DrawToDC() ) draws partial image. Any help???????? Thanks

    C / C++ / MFC css help tutorial question

  • how to save IHTMLElement of Tag IMG
    V voo doo12

    Hi every one. I'm tring to save IHTMLElement which has IMG tag to hard drive. I'm not tring to save the entire web page as image. NO. I'm tring to save single image (IHTMLElement of Tag IMG) to hard drive. I tried IHTMLElementRender::DrawToDC(), but it works only if the IHTMLElement size is less than the physical size of my computer screen. If the IHTMLElement (the single image or picture) size is larger than my computer's screen, the function ( DrawToDC() ) draws partial image. Any help???????? Thanks

    Managed C++/CLI css help tutorial question

  • How to Save Picture(Image)
    V voo doo12

    Actually, I'm tring to save individual images in a web page. The problem is if any individual image is larger than the physical size of my computr's screen, IHTMLElementRender::DrawToDC() only draws to the size of my computer screen size. So I ended up with partial image. Do you konw how to save an entire image?

    C / C++ / MFC help tutorial question

  • How to Save Image from WebBrowser control
    V voo doo12

    Thanks very much. I'm not familiar with MFC but I will be. Thanks again

    C / C++ / MFC graphics help tutorial question

  • How to Save Image from WebBrowser control
    V voo doo12

    Can you show me how I could save image(picture) from webbrowser control using MFC?

    C / C++ / MFC graphics help tutorial question

  • How to Save Picture(Image)
    V voo doo12

    Hi everyone I've a project where i have webBrowser control to display web page contents. When a user wants to save pictures(image(s)) to hard drive instead of he/she right clicking the picture(image) and clicking 'Save Picture As...', I have a button the user click that button and programatically saves the picture(image). I googled, post my question at MSDN, here, for a year and half no luck. I found some codes but they only save the portion of picture (image) which is displayed by screen. When ever the picture(image) is larger than the computer's physical screen size, I endes up saving partial picture(image). This forum seems more live than any other forum I know. Please help. Help.

    C / C++ / MFC help tutorial question

  • How to Save Image from WebBrowser control
    V voo doo12

    I did. But no one seems to know.

    C / C++ / MFC graphics help tutorial question

  • Get the button click event from another form
    V voo doo12

    there is simplest way if you are still enterested

    Managed C++/CLI tutorial question

  • loop through comboboxes
    V voo doo12

    Have you tried this code

    for each(ComboBox^ box in this->Controls)
    {
    if(box->GetType() == ComboBox::typeid)
    {
    box->Items->Clear();
    }
    }

    Managed C++/CLI tutorial question

  • How to Save Image from WebBrowser Control
    V voo doo12

    Hi everybody. I'm tring to save image form webBrowser control. and i have the following code

    mshtml::HTMLDocument^ document = dynamic_castmshtml::HTMLDocument^(this->webBrowser1->Document->DomDocument);

    mshtml::IHTMLElementCollection^ collImages = document->getElementsByTagName(L"img");

    for(int i = 0; i < collImages->length; ++i)
    {
    mshtml::IHTMLImgElement^ img = safe_castmshtml::IHTMLImgElement^(collImages->item(nullptr, i));

    mshtml::IHTMLElementRender^ render = dynamic\_cast<mshtml::IHTMLElementRender^>(img);
    
    Bitmap^ bmp = gcnew Bitmap(img->width, img->height); 
    
    Graphics^ g = Graphics::FromImage(bmp);
    
    IntPtr hdc = g->GetHdc();    
    
    render->DrawToDC(hdc);  //Here is the Error 
    
    g->ReleaseHdc(hdc);
    
    delete g; 
    g = nullptr;
    
    bmp->Save(L"C:\\\\Test\\\\SaveImage.Jpg", System::Drawing::Imaging::ImageFormat::Jpeg);	
    

    }

    I get the following error message Error C2664: 'mshtml::IHTMLElementRender::DrawToDC' : cannot convert parameter 1 from 'System::IntPtr' to 'mshtml::_RemotableHandle %' is there any one who knows how to fix this?

    Managed C++/CLI graphics help tutorial question

  • How to Save Image from WebBrowser control
    V voo doo12

    Hi everybody. I'm tring to save image form webBrowser control. and i have the following code

    mshtml::HTMLDocument^ document = dynamic_castmshtml::HTMLDocument^(this->webBrowser1->Document->DomDocument);
    mshtml::IHTMLElementCollection^ collImages = document->getElementsByTagName(L"img");

    for (int i = 0; i < collImages->length; ++i)
    {
    mshtml::IHTMLImgElement^ img = safe_castmshtml::IHTMLImgElement^(collImages->item(nullptr, i));
    mshtml::IHTMLElementRender^ render = dynamic_castmshtml::IHTMLElementRender^(img);

    Bitmap^ bmp = gcnew Bitmap(img->width, img->height);
    Graphics^ g = Graphics::FromImage(bmp);
    IntPtr hdc = g->GetHdc();
    render->DrawToDC(hdc); //Here is the Error
    g->ReleaseHdc(hdc);
    delete g; g = nullptr;
    bmp->Save(L"C:\\Test\\SaveImage.Jpg", System::Drawing::Imaging::ImageFormat::Jpeg);
    }

    I get the following error message Error C2664: 'mshtml::IHTMLElementRender::DrawToDC' : cannot convert parameter 1 from 'System::IntPtr' to 'mshtml::_RemotableHandle %' is there any one who knows how to fix this?

    C / C++ / MFC graphics help tutorial question

  • how to save image from webBrowser Control
    V voo doo12

    Hi every body is there any way to save image form webBrowser control with out reloading it?

    C / C++ / MFC tutorial question

  • how to save image from webBrowser Control
    V voo doo12

    Hi everybody I'm trying to save image from webBrowser control which I have in my project. I could do it by right clicking on the image and selecting "Save Picture As..." context menu, except I wanted to do it programmatically. I found a solution like this: this->webBrowser1->Document->execcommand("Save As", false, strFilePath); but it doesn't work (it always show save as dialog box - I do not want a save as dialog box to show up). Some one has better idea?

    Web Development tutorial question

  • how to save image from webBrowser Control
    V voo doo12

    Hi I'm trying to save image from webBrowser control after a open webpage. It is like right clicking on the picture and clicking at "Save Picture As..." Context menu, except I wanted to do it programmaticaly with out showing save dialog box. I tried this->webBrowser1->Document->execcommand("Save As", false, strFilePath); it does not work. Some one Knows better way?

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups