|
-
Feb 15th, 2004, 07:10 PM
#1
Thread Starter
New Member
adodb.stream File Formatting
Hi all.
I'm using ADODB.STREAM to extract a database embedded word document. However it seems to lose its formatting. When the document generated is opened its opened as if it was all text, i.e. lot of junk characters mixed in.
Any ideas?
Thanks,
Dim strSQL As String
Dim ors As New ADODB.Recordset
Dim FileStream As New ADODB.Stream
FileStream.Type = adTypeBinary
ors.Open strSQL, oConn
FileStream.Open
FileStream.Write ors!BlobFile
FileStreamSaveToFile "C:\BlobFile.doc", adSaveCreateOverWrite
FileStream.Close
ors.Close
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|