Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Word as report writer from Access VBA - html files

Status
Not open for further replies.

Driep

MIS
Jul 11, 2003
11
ZA
Hi,

I wrote a little application that reads file names from a database table where it is linked to a 'Manual Doc Code' in a specific sequence.

I want to use Word as the report writer to print these fiels in the sequence that they are linked.

With .doc files this works perfectly using Word.Application and Word.Document objects.

However, when I try to print an .html file, I get the VBA error message: "Type Mismatch".

How can I tell VBA and Word.Application that it is ok to open and priont a .html file ?

I have tried FileConverters. Although I can save a file from within Word as a 'Web Page', VBA tells me that 'Web Page' is not a valid file converter.

Any help will be appreciated.

Phlip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top