• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

save the web page content in MSword

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a popup windows and in that windows, i have 2 .jpg file.Now if i click a button inthis window then the whole content is save in a .doc format.

now i have written, if i click the save button then it call this function,

function saveAs(){document.execCommand('SaveAs',false,'Report Name.doc');
}

But when the popup saveas window appear, there is only .txt & .html file save option is there, no .doc format save option in the popup save as window.

even if i save it, then everything(only text) is come in that .doc but the pictures file is not coming in that .doc.Can you please suggest me or give some code so that i save my whole web page content(picture with some text) in doc format.Please reply me as soon as possible. Thanks in advance for reply.

Thanks,
Chinmay
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Browsers can't save in DOC format. There may be proprietary plugins that can do that.

Word can open most HTML files, though.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic