Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2004, 08:57 AM
Authorized User
 
Join Date: Jun 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Add BLOB graphic files into a Word Document

Hello All,

I need to add a BLOB graphic OLE stored in an Access 2002 database into a bookmark in a Word document.

I can't do it by just grabbing the BLOB field into a recordset, assigning it to a string and updating the word document with the string inserted.

Is there a secondary or native application I can open the BLOB (fields are called Binary Long Data) first and then copy it into word?

Any other suggestions? Ideally I want to display the BLOB in 35% of it's real size directly...somehow!

Ex. in VB6:
    app.Documents(strDocumentName).Activate
    app.Selection.GoTo What:=wdGoToLine, Which:=wdGoToFirst, Count:=1, Name:=""
    If app.ActiveDocument.Bookmarks.Exists(strBookmark) Then
           app.ActiveDocument.Bookmarks(strBookmark).Range.Te xt = rstGroup2!Picture
    End If

Well I know a BLOB graphic file is not Text but how else can I accomplish this?

Please advise. Thanks for your time!

Maria :(







Similar Threads
Thread Thread Starter Forum Replies Last Post
BLOB: file is empty after retrieving blob data thr taraprasad Pro JSP 0 May 22nd, 2008 10:02 AM
Output Word WITH Template or Header Graphic Ron Howerton ASP.NET 2.0 Professional 1 October 31st, 2007 03:18 PM
how to finding the Graphic objects in word doc madhan_needs_help Word VBA 2 August 8th, 2007 10:38 AM
Opening file after downloded files from BLOB. kumarop ASP.NET 2.0 Professional 0 April 1st, 2006 08:56 AM
BLOB graphic files /.wmf into a Word doc mckly Pro VB Databases 1 July 2nd, 2004 02:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.