CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: CHtmlView

  1. #1
    Join Date
    Nov 1999
    Location
    Kiev, Ukraine
    Posts
    57

    CHtmlView

    I used CHtmlView for the application. All is perfect, but there was a question: how to save contents of the CHtmlView in a file (html or txt)?


    Dmitry Karpezo, dkarpezo@lycosmail.com

  2. #2
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: CHtmlView

    How did you chage the contents?? Normaly you can only load a html file.


  3. #3
    Join Date
    Nov 1999
    Location
    Kiev, Ukraine
    Posts
    57

    Re: CHtmlView

    It is possible not only to load a file, but also to use anyone of URL, in my case html is generated by a server (http), and the result happens it is useful to save in a file.

    Dmitry Karpezo, dkarpezo@lycosmail.com

  4. #4
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: CHtmlView

    Would you be so kind and sent me a little part of the html-server code, because I am realy interested in that. I think you can solve your problem by streaming html. But I do not know it exactly, I just have started.
    Bye!


  5. #5
    Join Date
    Nov 1999
    Location
    Kiev, Ukraine
    Posts
    57

    Re: CHtmlView

    Streaming html is not a my work, therefore i can't help you, sorry.

    Dmitry Karpezo, dkarpezo@lycosmail.com

  6. #6
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: CHtmlView

    But, try ExecWb and give the correct parameter list.


  7. #7
    Join Date
    Nov 1999
    Location
    Kiev, Ukraine
    Posts
    57

    Re: CHtmlView

    This is my code:

    ExecWB(OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT, NULL, NULL);



    This example opened SaveAs dialog and if user select ok, then contents is saved in file in selected format and codepage.


    Dmitry Karpezo, dkarpezo@lycosmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured