Re: render html to image without browser window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"CBW" <charisw@xxxxxxxxxxxxxx> wrote in message
news:1112229507.375451.73060@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I have html text (in a string buffer) that I would like to render to a
> DC. Rather than creating a web browser window, I would like to simple
> write the text directly to the IHTMLDocument2 instance. The write is
> successful (the WriteHTMLtoDoc() function), but the DrawToDC()
> function fails with hresult catastrophic failure. Is it possible to
> do this without creating a window?

Probably not. Why can't you create a hidden window?
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Mixing 2D and 3D
    ... > What is the proper way to render both 2D and 3D graphics? ... If you are rendering fullscreen or splitting a single window, ... is created, a single implicit swap chain is created, though this is not ... the render target being set or larger. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Multiple windows and multithreading
    ... pass some hwnd to the CreateDevicemethod. ... I tried to pass a representation's window hwnd and it wokrs. ... Can I render to another windows with this device, ... If I create only one swap chain for render in multiple ...
    (microsoft.public.win32.programmer.directx.graphics)
  • DirectX to OpenGL
    ... I need to implement shadows. ... I also need to render an off-centre window. ... Any advice will be much appreciated. ...
    (comp.graphics.api.opengl)
  • Re: Screendump of non-visible window.
    ... trimmed for faster/easier reading: ... reading the pixels of the X window. ... whether there's a function that'll render a window to a GdkImage ... ... You always have the option of using Xvfb and running the app in a ...
    (comp.os.linux.x)
  • RE: DirectX 3-D ( 8.1 or higher)
    ... It's actually a really stupid mistake. ... In every render loop the projection matrix ... > When I resize the window, then the rendered picture gets stretched. ...
    (microsoft.public.vb.directx)