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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fax HTML File From VB.Net Using Fax Server on Network Server

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
I am successfully faxing text files from my vb.net 2003 application using a fax server on the network server (Win 2003). Now I am trying to fax HTML or Doc files and getting error 80070483 which after some searching indicates there is no file association for these types of files which doesn't make any sense to me. I can double click either of these file types and they open with the appropriate program. I also checked the settings in windows explorer/tools/folder options. I'm using the following code for testing.
Code:
oFaxDocument.Body = "C:\TestFolder\MyFile.html"
If I do this the Fax works correctly.
Code:
oFaxDocument.Body = "C:\TestFolder\MyFile.txt"
Not sure where to go from here. I've seen some suggestions that say I have to change the html file into an image before I can fax it. Any ideas on how I cane get these faxes to work?


Auguy
Sylvania/Toledo Ohio
 
This is just a wild (uneducated) guess, but maybe it works like CDO?
[tt]
oFaxDocument.HTMLBody = "C:\TestFolder\MyFile.html"
[/tt]
If I am right, I need to play PowerBall tonight :)

Have fun.

---- Andy
 
Thanks, I was hoping it would be something that easy, and then I would the be embarrassed, but it gives me an error when I try HTMLBody = .... The Error is: HtmlBody is not a member of FAXCOMEXLib.FaxDocument. I should have mentioned this is VB.Net 2003 and Framework 1.1

Auguy
Sylvania/Toledo Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top