Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serving Word documents
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
Serving Word documents
Divers
Thread ID:
00644310
Message ID:
00644310
Vues:
42
Does anyone know how to serve up word documents from asp pages without actually putting the files in a virtual directory. This is what I tried: (asp page with a VFP dll)

dll:(project = test, class = test)
function GetDoc() as string
return filetostr('c:\test.doc')

endfunction
asp:
<%
response.contentType="application/msword"
set ox = server.CreateObject("test.test")
response.BinaryWrite(ox.GetDoc())
%>
if I user BinaryWrite(), I get like unicode or something. Every byte has an extra 00 in front of it. If I use Write() it cuts off the document at the first offending character (probably a null). MSWord will not open the resulting file in either case.

tia
Bill Mittenzwey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform