I'm using the SMTP Email send file.vi to send a Word.doc file as an attachment. The .doc file is the result of the MS office report.vi opening a template, filling the bookmarks, then saving the file as a .doc.
The .doc is then opened with the New report.vi, printed (print report.vi), then disposed (disposed report.vi). The .doc is then attached to an email using SMTP email send file.vi.
The email(s) are arriving without problem and the attachment is visible. If, however, the attachment is double clicked, it will not open. The error message indicates that there may be either path or security problems. There is not, I'm sure of it.
Additionally, I tried saving the attachment "SAVE AS" to a local drive and then opening it. The "save as" worked alright, but when opeing the file I got the same errors.
Oddly enough, if I navigated to the location where the MS office report.vi saved the .doc file and then opened the file, everything worked as expected. The file opened and the bookmarks were filled in as expected.
It seems to me that Outlook (exchange server) is doing something to the file (freakin Microsoft). I can't imagine, however, that I'm the first to attach a file to an email using the MS office toolkit.
Somebody please shed some light on this. It's driving me nuts.
thanks,
todd