Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2003, 05:18 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Howto Convert Word file to JPG in IIS

How Can I to Convert a word file in to JPG page by page with ASP on IIS?

I read some docs teach how under VB:
1.CreateObject("Word.Application")
2.Set Selection to the range to convert
3.Call Selection.savetopicture() to save the data into clipboard
4.Call Savepicture Clipboard.Getdata(), jpgfilepath to save.

But in IIS, Clipboard and SavePicture is not available.

Could anyone suggest how to do it in detail?

Thanks a lot.
 
Old September 22nd, 2003, 02:21 PM
Authorized User
 
Join Date: Jun 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to nlicata
Default

Dont know how to do that, but why not display the page in IE as a word doc using the
enctype = application/MSWORD line?

Just a thought...

Nick
 
Old September 25th, 2003, 03:57 AM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you suggestion.

But I need to convert it for two reason.

Doc file always require the web client to have word installed.
Doc file load much slower for COM setup and download size.

I later found document from microsoft that said automation of office com on web server is not recommanded....

Seems there is no good way to convert doc to jpg under IIS anyway....






Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert PDF, Word file to HTML Snowby PHP How-To 0 March 18th, 2008 08:08 AM
Convert PDF to JPG harpua PHP How-To 1 September 17th, 2007 06:04 AM
Convert JPG to TIFF eresina Pro VB 6 9 January 3rd, 2005 03:37 PM
convert Word file to jpg w/o using clipboard lam_bon_bon VB How-To 0 September 13th, 2003 05:27 AM
Howto Convert Word file to JPG in IIS lam_bon_bon Classic ASP Professional 0 September 13th, 2003 05:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.