Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word97 and HTML output
Message
From
11/11/1999 09:10:57
Donald Krasnick
Stanton Systems and Consulting
Havertown, Pennsylvania, United States
 
 
To
10/11/1999 21:01:28
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00289845
Message ID:
00290041
Views:
25
Both machines have the converter (HTML32.CNV) installed. Strangely enough, the "good" machine has an older version.

My guess centers on the definition of "installed". They both have the CNV file present and registry entries to that effect. However, I'm assuming there is something funky with the "bad" machine's installation, but I haven't been able to find out what's different about it.

Thanks for your suggestion - I'll let you know if I solve the mystery.

Don


>>I'm opening "template" documents in Word, substituting data using bookmarks, and then writing the data out as an HTML file (for preview) or a DOC file (for actual printing).
>>
>>The problem is that sometimes the HTML output works fine (properly formatted tables, font characteristics, etc.) but at other times it produces "plain" ASCII text - no HTML formatting whatsoever. The problem seems to depend on the actual installation of Word97 on each machine.
>>
>>Anybody seen this?
>>
>>The code looks something like this:
>>
>> llLockComments = .F.
>> lcPassword = ""
>> llAddToRecentFiles = .F.
>> lnFormat = 100
>> lcOutfile = "foobar.htm"
>> loWord.Application.ActiveDocument.SaveAs(lcOutFile, lnFormat, llLockComments, lcPassword, llAddToRecentFiles)
>>
>>Note that the value of "100" for the format was obtained by performing the same task manually with the Macro Recorder on. If I try this in Word2000, I use a value of "8" (wdFormatHTML). I haven't repeated this experiment with Word2000, since its not installed on several machines (yet).
>>
>>Thanks for any help...
>>
>>Don
>
>I would first chack that the HTML convertor was installed on the suspect machines.
Previous
Reply
Map
View

Click here to load this message in the networking platform