Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serving Word documents
Message
General information
Forum:
Internet
Category:
Active Server Page
Title:
Serving Word documents
Miscellaneous
Thread ID:
00644310
Message ID:
00644310
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform