locked
export word to MAC RRS feed

  • Question

  • User-1830679761 posted

    Hi,

    I've a small function to export (web page) into word document. It works ok in windows. I change the header for Word Mac versuion as follow: However, it works if I re-open the .doc file in texteditor (in MAC), doing nothing and just save it. The it can open the word. If I don't do this, it will report a web archive problem and not opening.

    Does any one know what the issue is?

    thx

     

     

     

     

    MIME-Version: 1.0
    <%  If isMac Then%>Content-Location: file:///C:/B10446B2/Document2.htm
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/html; charset="macintosh"
    
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml"
    xmlns:o=3D"urn:schemas-microsoft-com:office:office"
    xmlns:w=3D"urn:schemas-microsoft-com:office:word"
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
    xmlns:css=3D"http://macVmlSchemaUri" xmlns=3D"http://www.w3.org/TR/REC-html=40">
    
    <%Else%>Content-Type: multipart/related; boundary="----=_NextPart_01C6C3CC.80581A00"
    
    This document is a Single File Web Page, also known as a Web Archive file.  If you are seeing this message, your browser or editor doesn't support Web Archive files.  Please download a browser that supports Web Archive, such as Microsoft Internet Explorer.
    
    ------=_NextPart_01C6C3CC.80581A00
    Content-Location: file:///C:/268BA2D4/ACHS.htm
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/html; charset="utf-8"
    
    <html xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:w="urn:schemas-microsoft-com:office:word"
    xmlns="http://www.w3.org/TR/REC-html40">
    <%end if %>


     

    Wednesday, November 3, 2010 8:13 PM

All replies